C# Class WebApplications.Utilities.PowerShell.NuSpecDependency

A nuspec dependency.
Datei anzeigen Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
NuSpecDependency ( string id, string version = null ) : System

Initializes a new instance of the NuSpecDependency struct.

Parse ( string dependency ) : NuSpecDependency

Parses the specified dependency.

ToString ( ) : string

Returns a string that represents this instance.

TryParse ( string input, NuSpecDependency &dependency ) : bool

Tries to parse the specified input into a dependency.

Method Details

NuSpecDependency() public method

Initializes a new instance of the NuSpecDependency struct.
public NuSpecDependency ( string id, string version = null ) : System
id string The id.
version string The version.
return System

Parse() public static method

Parses the specified dependency.
public static Parse ( string dependency ) : NuSpecDependency
dependency string The dependency.
return NuSpecDependency

ToString() public method

Returns a string that represents this instance.
/// The format string was a . /// /// An index from the format string is either less than zero or greater than or equal to the number of arguments. ///
public ToString ( ) : string
return string

TryParse() public static method

Tries to parse the specified input into a dependency.
public static TryParse ( string input, NuSpecDependency &dependency ) : bool
input string The input.
dependency NuSpecDependency The dependency.
return bool