FsPickler


ExtensionMethods

Namespace: MBrace.FsPickler
Attributes:
[<AutoOpen>]

F# Extension methods for FsPickler

Nested types and modules

TypeDescription
Pickle<'T>

Pickled object with type annotation

Type extensions

Type extensionDescription
x.Add(name, value)
Signature: (name:string * value:'T) -> unit
Type parameters: 'T

Adds value of given type to SerializationInfo instance.

CompiledName: SerializationInfo.Add

Pickler.FromPrimitives(...)
Signature: (reader:(ReadState -> 'T) * writer:(WriteState -> 'T -> unit) * cloner:(CloneState -> 'T -> 'T) option * accepter:(VisitState -> 'T -> unit) option * cacheByRef:bool option * useWithSubtypes:bool option) -> Pickler<'T>
Type parameters: 'T

Initializes a pickler out of a pair of read/write lambdas. Unsafe pickler generation method.

CompiledName: Pickler.FromPrimitives.Static

Pickler.FromSerializationInfo(...)
Signature: (reader:(SerializationInfo -> 'T) * writer:(SerializationInfo -> 'T -> unit) * useWithSubtypes:bool option) -> Pickler<'T>
Type parameters: 'T

Initializes a pickler instance using a pair of SerializationInfo lambdas.

CompiledName: Pickler.FromSerializationInfo.Static

x.Get(name)
Signature: name:string -> 'T
Type parameters: 'T

Gets value of given type and provided name from SerializationInfo instance.

CompiledName: SerializationInfo.Get

x.Id
Signature: string

Returns a unique, case-sensitive hash identifier

CompiledName: HashResult.get_Id

x.Id
Signature: string

Returns a unique, case-sensitive hash identifier

CompiledName: HashResult.get_Id

Pickler.Null(?useWithSubtypes)
Signature: (useWithSubtypes:bool option) -> Pickler<'T>
Type parameters: 'T

A pickler that always serializes instances as zero(null). Useful for forcing serialization of non-serializable fields.

CompiledName: Pickler.Null.Static

HashResult.Parse(id)
Signature: id:string -> HashResult

Parses hash identifier to receive a hash record

CompiledName: HashResult.Parse.Static

x.PickleTyped(...)
Signature: (value:'T * streamingContext:StreamingContext option * encoding:Encoding option) -> Pickle<'T>
Type parameters: 'T

Creates a type annotated pickle for given value.

CompiledName: FsPicklerSerializer.PickleTyped

x.TryGet(name)
Signature: name:string -> 'T option
Type parameters: 'T

Try getting value of provided type and name from SerializationInfo instance. Returns 'None' if not found.

CompiledName: SerializationInfo.TryGet

x.TryGetObj(name)
Signature: name:string -> obj option

Try getting value of provided name from SerializationInfo instance. Returns 'None' if not found.

CompiledName: SerializationInfo.TryGetObj

x.UnPickleTyped(...)
Signature: (pickle:Pickle<'T> * streamingContext:StreamingContext option * encoding:Encoding option) -> 'T
Type parameters: 'T

Deserializes a type annotated pickle.

CompiledName: FsPicklerSerializer.UnPickleTyped

Fork me on GitHub