Partager via


FSharpChoiceCodec<T1,T2> Classe

Définition

Sérialiseur pour Microsoft.FSharp.Core.FSharpChoice`2.

[Orleans.RegisterSerializer]
public class FSharpChoiceCodec<T1,T2> : Orleans.Serialization.Codecs.IDerivedTypeCodec, Orleans.Serialization.Codecs.IFieldCodec<Microsoft.FSharp.Core.FSharpChoice<T1,T2>>
[<Orleans.RegisterSerializer>]
type FSharpChoiceCodec<'T1, 'T2> = class
    interface IFieldCodec<Choice<'T1, 'T2>>
    interface IFieldCodec
    interface IDerivedTypeCodec
Public Class FSharpChoiceCodec(Of T1, T2)
Implements IDerivedTypeCodec, IFieldCodec(Of FSharpChoice(Of T1, T2))

Paramètres de type

T1
T2
Héritage
FSharpChoiceCodec<T1,T2>
Attributs
Implémente
IDerivedTypeCodec IFieldCodec IFieldCodec<Microsoft.FSharp.Core.FSharpChoice<T1,T2>>

Constructeurs

FSharpChoiceCodec<T1,T2>(IFieldCodec<T1>, IFieldCodec<T2>)

Initialise une nouvelle instance de la classe FSharpChoiceCodec<T1,T2>.

Implémentations d’interfaces explicites

IFieldCodec<FSharpChoice<T1,T2>>.ReadValue<TInput>(Reader<TInput>, Field)

Sérialiseur pour Microsoft.FSharp.Core.FSharpChoice`2.

IFieldCodec<FSharpChoice<T1,T2>>.WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, FSharpChoice<T1,T2>)

Écrit un champ.

S’applique à