Stringify.Library/Factory/TypeConverterFactory.cs
/// <summary>
/// Registers a type converter for the given type
/// </summary>
/// <param name="type">Type for which custom converter is to be registered</param>
/// <param name="converter">Converter to register</param>
/// <exception cref="ArgumentNullException">
/// <paramref name="type" /> or <paramref name="converter" /> is null.
/// </exception>
Registers a type converter for the given type
Registers a type converter for the given type
public static void RegisterTypeConverter(Type type, TypeConverter converter)
        {
            if (type == null)
                throw new ArgumentNullException(nameof(type));
            if (converter == null)
                throw new ArgumentNullException(nameof(converter));
            _converters.AddOrUpdate(type, converter, (x, y) => converter);
        }
public static void RegisterTypeConverter ( Type type , TypeConverter converter ) { if ( type == null ) throw new ArgumentNullException ( nameof ( type ) ) ; if ( converter == null ) throw new ArgumentNullException ( nameof ( converter ) ) ; _converters . AddOrUpdate ( type , converter , ( x , y ) => converter ) ; }
Registers a type converter for the given type
Registers a type converter for the given type
or  is null.
or is null .
type
Type
Type for which custom converter is to be registered
Type for which custom converter is to be registered
converter
TypeConverter
Converter to register
Converter to register