示例#1
0
 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);
     }
 }
示例#2
0
 public abstract void Read(object input, ObjectReader reader, Writer writer, PartialOptions optionsOverride);