10 public sealed class NameInfo : IEquatable<NameInfo>
18 internal NameInfo(
string shortName,
string longName)
20 if (shortName ==
null)
22 throw new ArgumentNullException(
"shortName");
27 throw new ArgumentNullException(
"longName");
50#region IEquatable<NameInfo> Members
86 public override bool Equals(
object obj)
95 return base.Equals(obj);
Models name information, used in CommandLine.Error instances.
override int GetHashCode()
Serves as a hash function for a particular type.
string NameText
Gets a formatted text with unified name information.
static readonly NameInfo EmptyName
Represents an empty name information. Used when CommandLine.Error are tied to values,...
NameInfo(string shortName, string longName)
string LongName
Gets the long name of the name information.
string ShortName
Gets the short name of the name information.
override bool Equals(object obj)
Determines whether the specified System.Object is equal to the current System.Object.
bool Equals(NameInfo other)
Returns a value that indicates whether the current instance and a specified CommandLine....