ReadOnlyCollectionCodec<T> 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.
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
-
ReadOnlyCollectionCodec<T>
- 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>) |