public static void Serialize <T>(this IFormatter f, T arg)
        {
            if (arg == null)
            {
                f.Null();
                return;
            }

            GenericSerializer <T> .Serialize(f, arg);
        }
Esempio n. 2
0
 public void Serialize <T>(IFormatter f, JsonSchemaValidationContext c, T o)
 {
     GenericSerializer <T> .Serialize(Items.Validator, f, c, o);
 }
 public static void SetCustomSerializer <T>(Action <IFormatter, T> serializer)
 {
     GenericSerializer <T> .Set(serializer);
 }
 public void Serialize <T>(IFormatter f, JsonSchemaValidationContext c, T value)
 {
     GenericSerializer <T> .Serialize(this, f, c, value);
 }