Class Parser.SwitchInfo
A simple internal class for passing back to the caller some information about the switch. The internals/implementation of this class has privillaged access to the contents of the SwitchRecord class.
Inheritance
Inherited Members
Namespace: ImageVault.Common.Lib.Configuration.CommandLine
Assembly: ImageVault.Common.dll
Syntax
public class SwitchInfo
Constructors
SwitchInfo(Object)
Constructor for the SwitchInfo class. Note, in order to hide to the outside world information not necessary to know, the constructor takes a System.Object (aka object) as it's registering type. If the type isn't of the correct type, an exception is thrown.
Declaration
public SwitchInfo(object rec)
Parameters
Type | Name | Description |
---|---|---|
System.Object | rec | The SwitchRecord for which this class store information. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the rec parameter is not of the type SwitchRecord. |
Properties
Aliases
Gets the Aliases of the SwitchInfo
Declaration
public string[] Aliases { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Description
Gets the Description of the SwitchInfo
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Enumerations
Gets the Enumerations of the SwitchInfo
Declaration
public string[] Enumerations { get; }
Property Value
Type | Description |
---|---|
System.String[] |
InternalValue
Gets the InternalValue of the SwitchInfo
Declaration
public object InternalValue { get; }
Property Value
Type | Description |
---|---|
System.Object |
IsEnum
Gets the IsEnum of the SwitchInfo
Declaration
public bool IsEnum { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the Name of the SwitchInfo
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the Type of the SwitchInfo
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |
Value
Gets the Value of the SwitchInfo
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |