Skip to content

T_CommandLine_Parsed_1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Parsed(T) Class

It contains an instance of type T with parsed values.

Inheritance Hierarchy

System.Object
  CommandLine.ParserResult(T)
    CommandLine.Parsed(T)
Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public sealed class Parsed<T> : ParserResult<T>, 
	IEquatable<Parsed<T>>

VB

Public NotInheritable Class Parsed(Of T)
	Inherits ParserResult(Of T)
	Implements IEquatable(Of Parsed(Of T))

C++

generic<typename T>
public ref class Parsed sealed : public ParserResult<T>, 
	IEquatable<Parsed<T>^>

F#

[<SealedAttribute>]
type Parsed<'T> =  
    class
        inherit ParserResult<'T>
        interface IEquatable<Parsed<'T>>
    end

Type Parameters

 

T
The type with attributes that define the syntax of parsing rules.
  The Parsed(T) type exposes the following members.

Constructors

 

Name Description
Protected method Parsed(T)(T) Initializes a new instance of the Parsed(T) class
Protected method Parsed(T)(T, TypeInfo) Initializes a new instance of the Parsed(T) class
  Back to Top

Properties

 

Name Description
Public property Tag Parser result type discriminator, defined as ParserResultType enumeration. (Inherited from ParserResult(T).)
Public property TypeInfo (Inherited from ParserResult(T).)
Public property Value Gets the instance with parsed values.
  Back to Top

Methods

 

Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).)
Public method Equals(Parsed(T)) Returns a value that indicates whether the current instance and a specified Parsed(T) have the same value.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Private Extension Method IsEmpty (Defined by UnParserExtensions.)
Public Extension Method MapResult(T, TResult) Provides a way to transform result data into another value. (Defined by ParserResultExtensions.)
Private Extension Method NormalizeValue (Defined by UnParserExtensions.)
Public Extension Method WithNotParsed(T) Executes action if ParserResult(T) lacks parsed values and contains errors. (Defined by ParserResultExtensions.)
Public Extension Method WithParsed(T) Executes action if ParserResult(T) contains parsed values. (Defined by ParserResultExtensions.)
  Back to Top

See Also

Reference

CommandLine Namespace

Clone this wiki locally