PicklerCache
Namespace: MBrace.FsPickler
Attributes:
[<Sealed>]
[<AutoSerializable(false)>]
Defines a cache of generated picklers for every type being used by a serializer.
Picklers are being generated recursively and on-demand. Note that this is an extremely
heavyweight object both in terms of size and cost of pickler generation. Most applications
should just make use of the PicklerCache.Instance
singleton. Otherwise extreme care must
be exercised so that multiple instances of this cache are not created.
Instance members
Instance member | Description |
x.GeneratePickler(t)
Signature: t:Type -> Pickler
|
Auto generates a pickler for given type
|
x.GeneratePickler()
Signature: unit -> Pickler<'T>
Type parameters: 'T
|
Auto generates a pickler for given type variable
|
x.IsPicklerGenerated(t)
Signature: t:Type -> bool
|
|
x.IsSerializableType(t)
Signature: t:Type -> bool
|
Decides if given type is serializable by the pickler cache
|
x.IsSerializableType()
Signature: unit -> bool
Type parameters: 'T
|
Decides if given type is serializable by the pickler cache
|
x.Registry
Signature: ICustomPicklerRegistry
|
CompiledName: get_Registry
|
Static members
Static member | Description |
PicklerCache.FromCustomPicklerRegistry(...)
Signature: registry:ICustomPicklerRegistry -> PicklerCache
Attributes:
[<CompilerMessage("PicklerCache instances are extremely heavyweight. Should only be created as singletons.", 8989)>]
|
Creates a custom pickler cache based off a supplied pickler registry.
|
PicklerCache.Instance
Signature: PicklerCache
|
Gets the singleton PicklerCache instance with the default pickler generation semantics
CompiledName: get_Instance
|