ImmutableListCodec<T> 类

定义

ImmutableList<T>序列化程序。

[Orleans.RegisterSerializer]
public sealed class ImmutableListCodec<T> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.Immutable.ImmutableList<T>,Orleans.Serialization.Codecs.ImmutableListSurrogate<T>>
[<Orleans.RegisterSerializer>]
type ImmutableListCodec<'T> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ImmutableList<'T>, ImmutableListSurrogate<'T>>
Public NotInheritable Class ImmutableListCodec(Of T)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ImmutableList(Of T), ImmutableListSurrogate(Of T))

类型参数

T

元素类型。

继承
属性

构造函数

ImmutableListCodec<T>(IValueSerializer<ImmutableListSurrogate<T>>)

初始化 ImmutableListCodec<T> 类的新实例。

方法

ConvertFromSurrogate(ImmutableListSurrogate<T>)

ImmutableList<T>序列化程序。

ConvertFromSurrogate(TSurrogate)

将值从代理项类型转换为字段类型。

(继承自 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableList<T>, ImmutableListSurrogate<T>)

ImmutableList<T>序列化程序。

ConvertToSurrogate(TField, TSurrogate)

将值转换为代理项类型。

(继承自 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

读取值。

(继承自 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

写入字段。

(继承自 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

适用于