Example #1
0
 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
         }
     }
     ;
 }
Example #2
0
		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 };
		}