共用方式為


FSharpChoiceCodec<T1,T2> 類別

定義

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))

類型參數

T1
T2
繼承
FSharpChoiceCodec<T1,T2>
屬性
實作
IDerivedTypeCodec IFieldCodec IFieldCodec<Microsoft.FSharp.Core.FSharpChoice<T1,T2>>

建構函式

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

初始化 FSharpChoiceCodec<T1,T2> 類別的新執行個體。

明確介面實作

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

Microsoft.FSharp.Core.FSharpChoice`2 序列化程式。

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

寫入欄位。

適用於