System.Data.PrimaryKeyTypeConverter.ConvertTo C# (CSharp) Метод

ConvertTo() публичный Метод

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
Результат object
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType == null)
            {
                throw new ArgumentNullException(nameof(destinationType));
            }

            return destinationType == typeof(string) ?
                Array.Empty<DataColumn>().GetType().Name :
                base.ConvertTo(context, culture, value, destinationType);
        }
    }