Skip to content

OrleansGeneratedCodeHelper.WriteStartUnion(Writer<TBufferWriter>, uint, Type?, Type)

WriteStartUnion(Writer<TBufferWriter>, uint, Type?, Type)

staticextension
View source
public static void WriteStartUnion<TBufferWriter>(this ref Writer<TBufferWriter> writer, uint fieldIdDelta, Type? expectedType, Type unionType)
Writes the header of a tagged-union field.

Parameters

writerWriter<TBufferWriter>
The writer.
fieldIdDeltauint
The field identifier delta.
expectedTypeType?
The expected type.
unionTypeType
The union type or closed base type.