WrappedTypeConverter Class

An ArgumentConverter that wraps an existing TypeConverter.

Definition

Namespace: Ookii.CommandLine.Conversion
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public class WrappedTypeConverter : ArgumentConverter
Inheritance
Object    ArgumentConverter    WrappedTypeConverter
Derived

Remarks

For a convenient way to use to use any TypeConverter with the ArgumentConverterAttribute attribute, use the WrappedTypeConverterT class. To use the default TypeConverter for a type, use the WrappedDefaultTypeConverterT class.

Constructors

WrappedTypeConverter Initializes a new instance of the WrappedTypeConverter class.

Properties

Converter Gets the type converter used by this instance.

Methods

Convert(ReadOnlySpanChar, CultureInfo, CommandLineArgument) Converts a string span to the type of the argument.
(Inherited from ArgumentConverter)
Convert(String, CultureInfo, CommandLineArgument) Converts a string to the type of the argument.
(Overrides ArgumentConverterConvert(String, CultureInfo, CommandLineArgument))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also