BadScript 2
Loading...
Searching...
No Matches
CommandLine.MissingGroupOptionError Class Referencesealed
Inheritance diagram for CommandLine.MissingGroupOptionError:
CommandLine.Error

Public Member Functions

new bool Equals (Error obj)
 
bool Equals (MissingGroupOptionError other)
 
- Public Member Functions inherited from CommandLine.Error
bool Equals (Error other)
 Returns a value that indicates whether the current instance and a specified CommandLine.Error have the same value.
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current System.Object.
 
override int GetHashCode ()
 Serves as a hash function for a particular type.
 

Static Public Attributes

const string ErrorMessage = "At least one option in a group must have value."
 

Package Functions

 MissingGroupOptionError (string group, IEnumerable< NameInfo > names)
 
- Package Functions inherited from CommandLine.Error
 Error (ErrorType tag, bool stopsProcessing)
 Initializes a new instance of the CommandLine.Error class.
 
 Error (ErrorType tag)
 Initializes a new instance of the CommandLine.Error class.
 

Properties

string Group [get]
 
IEnumerable< NameInfoNames [get]
 
- Properties inherited from CommandLine.Error
ErrorType Tag [get]
 Error type discriminator, defined as CommandLine.ErrorType enumeration.
 
bool StopsProcessing [get]
 Tells if error stops parsing process. Filtered by CommandLine.ErrorExtensions.OnlyMeaningfulOnes(System.Collections.Generic.IEnumerable<Error>).
 

Detailed Description

Definition at line 544 of file Error.cs.

Constructor & Destructor Documentation

◆ MissingGroupOptionError()

CommandLine.MissingGroupOptionError.MissingGroupOptionError ( string  group,
IEnumerable< NameInfo names 
)
package

Definition at line 548 of file Error.cs.

549 : base(ErrorType.MissingGroupOptionError)
550 {
551 Group = group;
552 Names = names;
553 }
IEnumerable< NameInfo > Names
Definition Error.cs:557
ErrorType
Discriminator enumeration of CommandLine.Error derivates.
Definition Error.cs:13

Member Function Documentation

◆ Equals() [1/2]

new bool CommandLine.MissingGroupOptionError.Equals ( Error  obj)

Definition at line 561 of file Error.cs.

562 {
564
565 if (other != null)
566 {
567 return Equals(other);
568 }
569
570 return base.Equals(obj);
571 }
MissingGroupOptionError(string group, IEnumerable< NameInfo > names)
Definition Error.cs:548
new bool Equals(Error obj)
Definition Error.cs:561

◆ Equals() [2/2]

bool CommandLine.MissingGroupOptionError.Equals ( MissingGroupOptionError  other)

Definition at line 577 of file Error.cs.

578 {
579 if (other == null)
580 {
581 return false;
582 }
583
584 return Group.Equals(other.Group) && Names.SequenceEqual(other.Names);
585 }

Member Data Documentation

◆ ErrorMessage

const string CommandLine.MissingGroupOptionError.ErrorMessage = "At least one option in a group must have value."
static

Definition at line 546 of file Error.cs.

Property Documentation

◆ Group

string CommandLine.MissingGroupOptionError.Group
get

Definition at line 555 of file Error.cs.

555{ get; }

◆ Names

IEnumerable<NameInfo> CommandLine.MissingGroupOptionError.Names
get

Definition at line 557 of file Error.cs.

557{ get; }

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