Suoranta.EnterpriseLib.Web - Developer API

StartManager..::..Parse Method

Parse args[] received by the main function.

Namespace:  Suoranta.EnterpriseLib.AppDomain
Assembly:  Suoranta.EnterpriseLib (in Suoranta.EnterpriseLib.dll)

Syntax


public virtual bool Parse(
	string[] originalArgs
)

Parameters

originalArgs
Type: array<String>[]()[][]

Remarks


Basic implementation of parsing without typecasting. Switches that were not followed by non-switch value are interpreted as boolean true (switch is present). Values followed by switch are stored as strings.

Examples


TypedArgument sequence -Path c:\ -Recurse -Option1 value1 value2 will yield
  • Path = "c:\"
  • Recurse = true
  • Option1 = value1
  • ValueAt5 = value2