public sealed class EnumConverter<TEnum> : TypeConverter<TEnum>
where TEnum : struct, new()
Public NotInheritable Class EnumConverter(Of TEnum As {Structure, New})
Inherits TypeConverter(Of TEnum)
generic<typename TEnum>
where TEnum : value class, gcnew()
public ref class EnumConverter sealed : public TypeConverter<TEnum>
[<SealedAttribute>]
type EnumConverter<'TEnum when 'TEnum : struct, new()> =
class
inherit TypeConverter<'TEnum>
end
EnumConverterTEnum | Initializes a new EnumConverterTEnum instance. |
AcceptsNull |
Gets a value indicating whether the converter accepts
null references as input.
(Overrides TypeConverterTAcceptsNull) |
DataType |
The data type the converter converts.
(Inherited from TypeConverterT) |
DefaultValue |
Gets the value to return if the parser finds no data in the CSV,
or if parsing fails and
the Throwing property is false.
(Inherited from TypeConverterT) |
Format | Gets the format string to use. |
IgnoreCase | Gets a value that indicates whether the parser takes casing into account. |
Throwing |
Gets a value indicating whether the converter throws a
FormatException
when a parsing error occurs, or if it returns
DefaultValue value instead.
(Inherited from TypeConverterT) |
ConvertToString |
Converts value to a String or null.
(Overrides TypeConverterTConvertToString(T)) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Parse |
Parses a read-only span of characters and returns
the corresponding .NET object.
(Inherited from TypeConverterT) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
TryParse |
Tries to parse a read-only span of characters as a T value.
(Overrides TypeConverterTTryParse(ReadOnlySpanChar, T)) |