Stringify.Library/Factory/TypeConverterFactory.cs
/// <summary>
/// Gets the registered <see cref="TypeConverter"/> associated with a given type. 
/// Also, initializes it with the supplied <see cref="ConverterOptions"/> if it has been derived from <see cref="Stringify.Converters.ICustomConverter"/>
/// </summary>
/// <param name="type">Type for which registered converter is queried</param>
/// <param name="options"></param>
/// <returns></returns>
Gets the registered  associated with a given type.
Also, initializes it with the supplied  if it has been derived from
Gets the registered associated with a given type . Also initializes it with the supplied if it has been derived from
public static TypeConverter GetTypeConverter(Type type, ConverterOptions options)
        {
            if (type == null)
                return null;
            TypeConverter converter;
            _converters.TryGetValue(type, out converter);
            var numberConverter = converter as Converters.ICustomConverter;
            if (numberConverter != null)
                numberConverter.Options = options;
            return converter;
        }
public static TypeConverter GetTypeConverter ( Type type , ConverterOptions options ) { if ( type == null ) return null ; TypeConverter converter ; _converters . TryGetValue ( type , out converter ) ; var numberConverter = converter as Converters . ICustomConverter ; if ( numberConverter != null ) numberConverter . Options = options ; return converter ; }
Gets the registered  associated with a given type.
Gets the registered associated with a given type .
None
type
Type
Type for which registered converter is queried
Type for which registered converter is queried
options
ConverterOptions
None