public void ReadObject(object input, ObjectReader reader, Writer writer, PartialOptions optionsOverride) { if (input == null) writer.WriteNull(); else if (isSealed || input.GetType() == Type) Read(input, reader, writer, optionsOverride); else { TypeDefinition inputTypeDef = TypeCache.GetTypeDefinition(input); optionsOverride.SerializeTypeInformation = TypeInformationLevel.Minimal; inputTypeDef.Read(input, reader, writer, optionsOverride); } }
public abstract void Read(object input, ObjectReader reader, Writer writer, PartialOptions optionsOverride);