System.Data.ColumnTypeConverter.GetStandardValues C# (CSharp) Method

GetStandardValues() public method

Gets a collection of standard values for the data type this validator is designed for.
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
return StandardValuesCollection
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            if (_values == null)
            {
                object[] objTypes;

                if (s_types != null)
                {
                    objTypes = new object[s_types.Length];
                    Array.Copy(s_types, 0, objTypes, 0, s_types.Length);
                }
                else
                {
                    objTypes = null;
                }

                _values = new StandardValuesCollection(objTypes);
            }
            return _values;
        }