Esempio n. 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
         }
     }
     ;
 }
Esempio n. 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 };
		}