private GetConverter ( object component, bool noCustomTypeDesc ) : |
||
component | object | |
noCustomTypeDesc | bool | |
return |
public static TypeConverter GetConverter(object component, bool noCustomTypeDesc)
{
TypeConverter converter = GetDescriptor(component, noCustomTypeDesc).GetConverter();
return converter;
}
TypeDescriptor::GetConverter ( |
|
TypeDescriptor::GetConverter ( object component ) : |
/// <summary> /// Initializes a new instance of the <see cref="NameableConverter"/> class. /// </summary> /// <param name="type">The type.</param> /// <exception cref="System.ArgumentException">NameableConverterBadCtorArg - type</exception> public NameableConverter(Type type) { NameableType = type; UnderlyingType = Nameable.GetUnderlyingType(type) ?? throw new ArgumentException(nameof(type), "type"); UnderlyingTypeConverter = TypeDescriptor.GetConverter(UnderlyingType); }