Cache the F# reflection API calls results for fast access
This library is an early preview.
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