HashSetCodec<T> 类

定义

HashSet<T>序列化程序。

[Orleans.RegisterSerializer]
public sealed class HashSetCodec<T> : Orleans.Serialization.Codecs.IFieldCodec<System.Collections.Generic.HashSet<T>>
[Orleans.RegisterSerializer]
public sealed class HashSetCodec<T> : Orleans.Serialization.Codecs.IFieldCodec<System.Collections.Generic.HashSet<T>>, Orleans.Serialization.Serializers.IBaseCodec<System.Collections.Generic.HashSet<T>>
[<Orleans.RegisterSerializer>]
type HashSetCodec<'T> = class
    interface IFieldCodec<HashSet<'T>>
    interface IFieldCodec
[<Orleans.RegisterSerializer>]
type HashSetCodec<'T> = class
    interface IFieldCodec<HashSet<'T>>
    interface IFieldCodec
    interface IBaseCodec<HashSet<'T>>
    interface IBaseCodec
Public NotInheritable Class HashSetCodec(Of T)
Implements IFieldCodec(Of HashSet(Of T))
Public NotInheritable Class HashSetCodec(Of T)
Implements IBaseCodec(Of HashSet(Of T)), IFieldCodec(Of HashSet(Of T))

类型参数

T

元素类型。

继承
HashSetCodec<T>
属性
实现

构造函数

HashSetCodec<T>(IFieldCodec<T>, IFieldCodec<IEqualityComparer<T>>)

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

方法

ReadValue<TInput>(Reader<TInput>, Field)

读取值。

Serialize<TBufferWriter>(Writer<TBufferWriter>, HashSet<T>)

HashSet<T>序列化程序。

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, HashSet<T>)

写入字段。

显式接口实现

IBaseCodec<HashSet<T>>.Deserialize<TInput>(Reader<TInput>, HashSet<T>)

HashSet<T>序列化程序。

适用于