ReferenceTypeSurrogateCodec<TField,TSurrogate> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Surrogate serializer for TField
.
public abstract class ReferenceTypeSurrogateCodec<TField,TSurrogate> : Orleans.Serialization.Codecs.IFieldCodec<TField> where TSurrogate : struct
type ReferenceTypeSurrogateCodec<'Field, 'Surrogate (requires 'Surrogate : struct)> = class
interface IFieldCodec<'Field>
interface IFieldCodec
Public MustInherit Class ReferenceTypeSurrogateCodec(Of TField, TSurrogate)
Implements IFieldCodec(Of TField)
Type Parameters
- TField
The type which the implementation of this class supports.
- TSurrogate
The surrogate type serialized in place of TField
.
- Inheritance
-
ReferenceTypeSurrogateCodec<TField,TSurrogate>
- Implements
-
IFieldCodec IFieldCodec<TField>
Constructors
ReferenceTypeSurrogateCodec<TField,TSurrogate>(IValueSerializer<TSurrogate>) |
Initializes a new instance of the ReferenceTypeSurrogateCodec<TField,TSurrogate> class. |
Methods
ConvertFromSurrogate(TSurrogate) |
Converts a surrogate value to the field type. |
ConvertToSurrogate(TField, TSurrogate) |
Converts a value to the surrogate type. |
ReadValue<TInput>(Reader<TInput>, Field) |
Reads a value. |
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField) |
Writes a field. |