BadScript 2
Loading...
Searching...
No Matches
CommandLine.Core.Name Class Reference
Inheritance diagram for CommandLine.Core.Name:
CommandLine.Core.Token

Public Member Functions

 Name (string text)
 
bool Equals (Name other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Additional Inherited Members

- Static Public Member Functions inherited from CommandLine.Core.Token
static Token Name (string text)
 
static Token Value (string text)
 
static Token Value (string text, bool explicitlyAssigned)
 
static Token ValueForced (string text)
 
static Token ValueFromSeparator (string text)
 
- Protected Member Functions inherited from CommandLine.Core.Token
 Token (TokenType tag, string text)
 
- Properties inherited from CommandLine.Core.Token
TokenType Tag [get]
 
string Text [get]
 

Detailed Description

Definition at line 51 of file Token.cs.

Constructor & Destructor Documentation

◆ Name()

CommandLine.Core.Name.Name ( string  text)

Definition at line 53 of file Token.cs.

54 : base(TokenType.Name, text) { }

Member Function Documentation

◆ Equals() [1/2]

bool CommandLine.Core.Name.Equals ( Name  other)

Definition at line 58 of file Token.cs.

59 {
60 if (other == null)
61 {
62 return false;
63 }
64
65 return Tag.Equals(other.Tag) && Text.Equals(other.Text);
66 }

◆ Equals() [2/2]

override bool CommandLine.Core.Name.Equals ( object  obj)

Definition at line 70 of file Token.cs.

71 {
72 Name other = obj as Name;
73
74 if (other != null)
75 {
76 return Equals(other);
77 }
78
79 return base.Equals(obj);
80 }
Name(string text)
Definition Token.cs:53
bool Equals(Name other)
Definition Token.cs:58

◆ GetHashCode()

override int CommandLine.Core.Name.GetHashCode ( )

Definition at line 82 of file Token.cs.

83 {
84 return new { Tag, Text }.GetHashCode();
85 }

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