public static void AddExternalType(Type type, Func <object, string> ser, Func <string, object> deser) { if (!types.ContainsKey(type)) { types[type] = new ExternalTypeFuncs() { Serialize = ser, Deserialize = deser } } ; }
public static void AddExternalType (Type type, Func<object, string> ser, Func<string, object> deser) { if (!types.ContainsKey (type)) types[type] = new ExternalTypeFuncs () { Serialize=ser, Deserialize=deser }; }