Show / Hide Table of Contents

Class ArgumentCollectionFactory

Factory for creating CommandExecutionInfo instances from command line arguments. This class should be named CommandExecutionInfoFactory and will be renamed in a future release.

Inheritance
object
ArgumentCollectionFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CommandsFramework
Assembly: Benday.CommandsFramework.dll
Syntax
public class ArgumentCollectionFactory

Methods

| Edit this page View Source

GetSlashCount(string)

Declaration
public static int GetSlashCount(string input)
Parameters
Type Name Description
string input
Returns
Type Description
int
| Edit this page View Source

Parse(string[])

Parse raw command line args and return a populated CommandExecutionInfo object.

Declaration
public CommandExecutionInfo Parse(string[] input)
Parameters
Type Name Description
string[] input

Array of strings. This is typically the raw args from the command line.

Returns
Type Description
CommandExecutionInfo

CommandExecutionInfo for this requested command invocation

Exceptions
Type Condition
ArgumentNullException
ArgumentOutOfRangeException
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com