/// <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); }
public override string ToString() { return(TypeDescriptor.GetConverter(typeof(System.ComponentModel.InheritanceLevel)).ConvertToString(this.InheritanceLevel)); }
public TypeConverter GetConverter() => NativeTypeDesc.GetConverter(_entityType, true);