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