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