Skip to content

Latest commit

History

History
31 lines (20 loc) 路 663 Bytes

File metadata and controls

31 lines (20 loc) 路 663 Bytes

Cached F# Reflection

Nuget Package

Cache the F# reflection API calls results for fast access

Status

This library is an early preview.

Change Log

Sample

open BlackFox.CachedFSharpReflection

type Foo = {
    Bar: int
}

// Use the shared cache
FSharpTypeCache.Shared.IsRecord(typeof<Foo>) // True
FSharpTypeCache.Shared.IsUnion(typeof<Foo>) // False

// Create a new cache
let cache = FSharpTypeCache()
cache.IsRecord(typeof<Foo>) // True
cache.IsUnion(typeof<Foo>) // False