Class Arg
A single command-line arguments to be passed to an executable.
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public class Arg : ArgBase
Constructors
Arg()
Declaration
public Arg()
Properties
Value
A single command-line arguments to be passed to an executable. Will be automatically escaped to allow proper concatenation of multiple arguments containing spaces.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Clone()
Creates a deep copy of this Arg instance.
Declaration
public override ArgBase Clone()
Returns
Type | Description |
---|---|
ArgBase | The new copy of the Arg. |
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(Arg)
Declaration
public bool Equals(Arg other)
Parameters
Type | Name | Description |
---|---|---|
Arg | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Normalize()
Converts legacy elements, sets default values, etc..
Declaration
public override void Normalize()
Overrides
Exceptions
Type | Condition |
---|---|
InvalidDataException | A required property is not set or invalid. |
ToString()
Returns Value. Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(Arg, Arg)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(Arg left, Arg right)
Parameters
Type | Name | Description |
---|---|---|
Arg | left | The left object |
Arg | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Implicit(String to Arg)
Convenience cast for turning strings into plain Args.
Declaration
public static implicit operator Arg(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value |
Returns
Type | Description |
---|---|
Arg |
Inequality(Arg, Arg)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(Arg left, Arg right)
Parameters
Type | Name | Description |
---|---|---|
Arg | left | The left object |
Arg | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |