System.ComponentModel.NullableConverter.NullableConverter C# (CSharp) Method

NullableConverter() public method

public NullableConverter ( Type type ) : System.Collections
type System.Type
return System.Collections
        public NullableConverter(Type type)
        {
            this.nullableType = type;

            this.simpleType = Nullable.GetUnderlyingType(type);
            if (this.simpleType == null) {
                throw new ArgumentException(SR.GetString(SR.NullableConverterBadCtorArg), "type");
            }

            this.simpleTypeConverter = TypeDescriptor.GetConverter(this.simpleType);
        }