public string Serialise(object o) { var type = o.GetType(); JsonSerialiser serializer = FindFirstConverter(type); if (serializer != null) { return(serializer.Convert(o)); } return(SerialiseValueType(o)); }
public static void Add(Type type, JsonSerialiser converter) { mConverters.Add(type, converter); }
public void Add(Type type, JsonSerialiser converter) { mConverters[type] = converter; }