System.ComponentModel.TypeDescriptor.GetConverter C# (CSharp) Method

GetConverter() private method

private GetConverter ( object component, bool noCustomTypeDesc ) : TypeConverter
component object
noCustomTypeDesc bool
return TypeConverter
        public static TypeConverter GetConverter(object component, bool noCustomTypeDesc)
        {
            TypeConverter converter = GetDescriptor(component, noCustomTypeDesc).GetConverter();
            return converter;
        }

Same methods

TypeDescriptor::GetConverter ( Type type ) : TypeConverter
TypeDescriptor::GetConverter ( object component ) : TypeConverter

Usage Example

Esempio n. 1
0
 /// <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);
 }
All Usage Examples Of System.ComponentModel.TypeDescriptor::GetConverter