public void RegisterConverter <T>(SLJsonConverter <T, string> converter) { if (converter == null) { throw new ArgumentNullException("converter"); } m_Converters[typeof(T)] = x => converter((T)x); }
public void RegisterConverter(Type type, SLJsonConverter <object, string> converter) { if (type == null) { throw new ArgumentNullException("type"); } if (converter == null) { throw new ArgumentNullException("converter"); } m_Converters[type] = converter; }
public void RegisterConverter(Type type, SLJsonConverter converter) { m_Converters[type] = converter; }