Redigera

Dela via


ReadOnlyCollectionCodec<T> Class

Definition

Serializer for ReadOnlyCollection<T>.

[Orleans.RegisterSerializer]
public sealed class ReadOnlyCollectionCodec<T> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.ObjectModel.ReadOnlyCollection<T>,Orleans.Serialization.Codecs.ReadOnlyCollectionSurrogate<T>>
[<Orleans.RegisterSerializer>]
type ReadOnlyCollectionCodec<'T> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ReadOnlyCollection<'T>, ReadOnlyCollectionSurrogate<'T>>
Public NotInheritable Class ReadOnlyCollectionCodec(Of T)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ReadOnlyCollection(Of T), ReadOnlyCollectionSurrogate(Of T))

Type Parameters

T

The element type.

Inheritance
Attributes

Constructors

ReadOnlyCollectionCodec<T>(IValueSerializer<ReadOnlyCollectionSurrogate<T>>)

Initializes a new instance of the ReadOnlyCollectionCodec<T> class.

Methods

ConvertFromSurrogate(ReadOnlyCollectionSurrogate<T>) System.Object.ConvertFromSurrogate(Orleans.Serialization.Codecs.ReadOnlyCollectionSurrogate{`0}@)
ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type to the field type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ReadOnlyCollection<T>, ReadOnlyCollectionSurrogate<T>) System.Object.ConvertToSurrogate(System.Collections.ObjectModel.ReadOnlyCollection{`0},Orleans.Serialization.Codecs.ReadOnlyCollectionSurrogate{`0}@)
ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Applies to