CommandLine
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
CommandLine.ParserResult< T > Class Template Reference

Models a parser result. It contains an instance of type T with parsed values and a sequence of CommandLine.Error. More...

Inheritance diagram for CommandLine.ParserResult< T >:

Public Member Functions

override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current System.Object. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. More...
 
bool Equals (ParserResult< T > other)
 Returns a value that indicates whether the current instance and a specified CommandLine.ParserResult{T} have the same value. More...
 

Properties

Value [get]
 Gets the instance with parsed values. More...
 
IEnumerable< ErrorErrors [get]
 Gets the sequence of parsing errors. More...
 

Detailed Description

Models a parser result. It contains an instance of type T with parsed values and a sequence of CommandLine.Error.

Template Parameters
TThe type with attributes that define the syntax of parsing rules.

Member Function Documentation

override bool CommandLine.ParserResult< T >.Equals ( object  obj)
inline

Determines whether the specified System.Object is equal to the current System.Object.

Parameters
objThe System.Object to compare with the current System.Object.
Returns
true

if the specified System.Object is equal to the current System.Object; otherwise,

false

.

bool CommandLine.ParserResult< T >.Equals ( ParserResult< T >  other)
inline

Returns a value that indicates whether the current instance and a specified CommandLine.ParserResult{T} have the same value.

Parameters
otherThe CommandLine.ParserResult{T} instance to compare.
Returns
true

if this instance of CommandLine.ParserResult{T} and other have the same value; otherwise,

false

.

override int CommandLine.ParserResult< T >.GetHashCode ( )
inline

Serves as a hash function for a particular type.

A hash code for the current System.Object.

Property Documentation

IEnumerable<Error> CommandLine.ParserResult< T >.Errors
get

Gets the sequence of parsing errors.

T CommandLine.ParserResult< T >.Value
get

Gets the instance with parsed values.


The documentation for this class was generated from the following file: