Note
This type is only available when using .Net 7 or later.
public interface IParserProvider<TSelf>
where TSelf : class, Object, IParserProvider<TSelf>
Public Interface IParserProvider(Of TSelf As {Class, Object, IParserProvider(Of TSelf)})
Dim instance As IParserProvider(Of TSelf)
generic<typename TSelf>
where TSelf : ref class, Object, IParserProvider<TSelf>
public interface class IParserProvider
This interface is automatically implemented on a class when the GeneratedParserAttribute is used. Classes without that attribute must create the parser directly by using the CommandLineParserT(ParseOptions) constructor; these classes do not support this interface unless it is manually implemented.
When using a version of .Net where static interface methods are not supported (versions prior to .Net 7.0), the GeneratedParserAttribute will still generate the same method as defined by this interface, just without having it implement the interface.
CreateParser | Creates a CommandLineParserT instance using the specified options. |