FsPickler


CustomPicklerRegistry

Namespace: MBrace.FsPickler
Attributes:
[<Sealed>]
[<AutoSerializable(false)>]

Type for appending user-supplied pickler registrations

Constructors

ConstructorDescription
new()
Signature: unit -> CustomPicklerRegistry

CompiledName: .ctor

Instance members

Instance memberDescription
x.DeclareSerializable()
Signature: unit -> unit
Type parameters: 'T

Registers the specifed type as if carrying the .IsSerializable flag

x.DeclareSerializable(typesToSerialize)
Signature: (typesToSerialize:Type []) -> unit

Appends a list of types that will be treated by the pickler generator as if carrying the .IsSerializable flag

x.DeclareSerializable(isSerializable)
Signature: (isSerializable:(Type -> bool)) -> unit

Appends a predicate used to determine whether a specific type should be treated as if carrying the .IsSerializable flag

x.IsGenerationStarted
Signature: bool

Gets whether isntance is alread being used for pickler generation. In that case, any attempt to register new types will result in an InvalidOperationException

CompiledName: get_IsGenerationStarted

x.PicklerFactories
Signature: Type []

List of all individual pickler factory types

CompiledName: get_PicklerFactories

x.RegisterFactory(factory)
Signature: (factory:(IPicklerResolver -> Pickler<'T>)) -> unit
Type parameters: 'T

Registers a user-specified pickler factory

x.RegisterPickler(pickler)
Signature: pickler:Pickler -> unit

Registers a supplied custom pickler

x.RegisterPicklers(picklers)
Signature: (picklers:Pickler []) -> unit

Registers a collections of supplied custom pickelrs

x.SerializationPredicates
Signature: (Type -> bool) []

List of all user-specified custom serialization predicates

CompiledName: get_SerializationPredicates

x.TypesDeclaredSerializable
Signature: Type []

List of all individual types declared serializable

CompiledName: get_TypesDeclaredSerializable

Fork me on GitHub