public abstract class ArgumentConverter
Public MustInherit Class ArgumentConverter
Dim instance As ArgumentConverter
public ref class ArgumentConverter abstract
To create a custom argument converter, you must implement the Convert(ReadOnlyMemoryChar, CultureInfo, CommandLineArgument) method.
The source of the conversion is a ReadOnlyMemoryT that contains the argument text. This may be an entire argument, or a substring of an argument if the user used a non-whitespace argument name separator like -Name:Value.
ReadOnlyMemoryT is used because ReadOnlyMemoryTToString does not allocate when the memory is an entire string. However, since it still allocates for substrings, it's still recommended to convert using the ReadOnlyMemoryT or ReadOnlySpanT directly if possible.
ArgumentConverter | Initializes a new instance of the ArgumentConverter class |
Convert | Converts a string memory region to the type of the argument. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |