MCPcopy Create free account
hub / github.com/apache/fory / WriteObject

Method WriteObject

csharp/src/Fory/TypeInfo.cs:181–190  ·  view source on GitHub ↗
(
        Serializer<T> serializer,
        WriteContext context,
        object? value,
        RefMode refMode,
        bool writeTypeInfo,
        bool hasGenerics)

Source from the content-addressed store, hash-verified

179 }
180
181 private static void WriteObject<T>(
182 Serializer<T> serializer,
183 WriteContext context,
184 object? value,
185 RefMode refMode,
186 bool writeTypeInfo,
187 bool hasGenerics)
188 {
189 serializer.Write(context, CoerceRuntimeValue(serializer, value), refMode, writeTypeInfo, hasGenerics);
190 }
191
192 private static T CoerceRuntimeValue<T>(Serializer<T> serializer, object? value)
193 {

Callers 1

WriteTypedCaseValueMethod · 0.45

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected