/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="innerType">The base IArgumentType instance to
 /// wrap and extend.</param>
 /// <param name="parser">Optionally provides an override implementation
 /// of the base argument type's string parser implementation.</param>
 /// <param name="formatter">Optionally provides an override
 /// implementation of the base argument type's object formatter
 /// implementation.</param>
 /// <param name="completer">Optionally provides an override
 /// implementation of the base argument type's string completer
 /// implementation.</param>
 public ArgumentTypeExtension(IArgumentType innerType, IStringParser parser = null, IObjectFormatter formatter = null, IStringCompleter completer = null)
 {
     InnerType = innerType;
     Parser    = parser;
     Formatter = formatter;
     Completer = completer;
 }
Example #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="innerType">The base IArgumentType instance to
 /// wrap and extend.</param>
 /// <param name="parser">Optionally provides an override implementation
 /// of the base argument type's string parser implementation.</param>
 /// <param name="formatter">Optionally provides an override
 /// implementation of the base argument type's object formatter
 /// implementation.</param>
 /// <param name="completer">Optionally provides an override
 /// implementation of the base argument type's string completer
 /// implementation.</param>
 public ArgumentTypeExtension(IArgumentType innerType, IStringParser parser, IObjectFormatter formatter, IStringCompleter completer)
 {
     InnerType = innerType;
     Parser = parser;
     Formatter = formatter;
     Completer = completer;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="type">The primitive object type to find a corresponding
 /// IArgumentType implementation for (e.g. System.String).</param>
 /// <param name="parser">Optionally provides an override implementation
 /// of the base argument type's string parser implementation.</param>
 /// <param name="formatter">Optionally provides an override
 /// implementation of the base argument type's object formatter
 /// implementation.</param>
 /// <param name="completer">Optionally provides an override
 /// implementation of the base argument type's string completer
 /// implementation.</param>
 public ArgumentTypeExtension(Type type, IStringParser parser = null, IObjectFormatter formatter = null, IStringCompleter completer = null) : this(ArgumentType.GetType(type), parser, formatter, completer)
 {
 }