/// <summary> /// Returns a value that indicates whether the current instance and a specified <see cref="CommandLine.Parsed{T}"/> have the same value. /// </summary> /// <param name="other">The <see cref="CommandLine.Parsed{T}"/> instance to compare.</param> /// <returns><value>true</value> if this instance of <see cref="CommandLine.Parsed{T}"/> and <paramref name="other"/> have the same value; otherwise, <value>false</value>.</returns> public bool Equals(Parsed <T> other) { if (other == null) { return(false); } return(this.Tag.Equals(other.Tag) && Value.Equals(other.Value)); }
/// <summary> /// Returns a value that indicates whether the current instance and a specified <see cref="CommandLine.Parsed{T}"/> have the same value. /// </summary> /// <param name="other">The <see cref="CommandLine.Parsed{T}"/> instance to compare.</param> /// <returns><value>true</value> if this instance of <see cref="CommandLine.Parsed{T}"/> and <paramref name="other"/> have the same value; otherwise, <value>false</value>.</returns> public bool Equals(Parsed <T> other) { if (other == null) { return(false); } return(this.Tag.Equals(other.Tag) && Value.Equals(other.Value) && VerbTypes.SequenceEqual(other.VerbTypes)); }