共用方式為


FSharpChoiceCodec<T1,T2>.IFieldCodec<FSharpChoice<T1,T2>>.WriteField<TBufferWriter> 方法

定義

寫入欄位。

void IFieldCodec<FSharpChoice<T1,T2>>.WriteField<TBufferWriter> (ref Orleans.Serialization.Buffers.Writer<TBufferWriter> writer, uint fieldIdDelta, Type expectedType, Microsoft.FSharp.Core.FSharpChoice<T1,T2> value) where TBufferWriter : System.Buffers.IBufferWriter<byte>;
abstract member Orleans.Serialization.Codecs.IFieldCodec<Microsoft.FSharp.Core.FSharpChoice<T1,T2>>.WriteField : Writer * uint32 * Type * Choice<'T1, 'T2> -> unit (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)
override this.Orleans.Serialization.Codecs.IFieldCodec<Microsoft.FSharp.Core.FSharpChoice<T1,T2>>.WriteField : Writer * uint32 * Type * Choice<'T1, 'T2> -> unit (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)
Sub WriteField(Of TBufferWriter As IBufferWriter(Of Byte)) (ByRef writer As Writer(Of TBufferWriter), fieldIdDelta As UInteger, expectedType As Type, value As FSharpChoice(Of T1, T2)) Implements IFieldCodec(Of FSharpChoice(Of T1, T2)).WriteField

類型參數

TBufferWriter

緩衝區寫入器類型。

參數

writer
Writer<TBufferWriter>

寫入器。

fieldIdDelta
UInt32

欄位識別碼差異。

expectedType
Type

預期的型別。

value
Microsoft.FSharp.Core.FSharpChoice<T1,T2>

數值。

實作

適用於