Ejemplo n.º 1
0
        public void RegisterConverter <T>(SLJsonConverter <T, string> converter)
        {
            if (converter == null)
            {
                throw new ArgumentNullException("converter");
            }

            m_Converters[typeof(T)] = x => converter((T)x);
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public void RegisterConverter(Type type, SLJsonConverter converter)
 {
     m_Converters[type] = converter;
 }