IFieldCodecProvider.GetCodec 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetCodec(Type) |
获取特定类型的编解码器。 |
GetCodec<TField>() |
获取指定类型的编解码器。 |
GetCodec(Type)
获取特定类型的编解码器。
public Orleans.Serialization.Codecs.IFieldCodec GetCodec (Type fieldType);
abstract member GetCodec : Type -> Orleans.Serialization.Codecs.IFieldCodec
Public Function GetCodec (fieldType As Type) As IFieldCodec
参数
- fieldType
- Type
字段类型。
返回
编解码器。
适用于
GetCodec<TField>()
获取指定类型的编解码器。
public Orleans.Serialization.Codecs.IFieldCodec<TField> GetCodec<TField> ();
abstract member GetCodec : unit -> Orleans.Serialization.Codecs.IFieldCodec<'Field>
Public Function GetCodec(Of TField) () As IFieldCodec(Of TField)
类型参数
- TField
字段类型。
返回
IFieldCodec<TField>
编解码器。