/// <summary> /// Returns a quantity indicating whether this instance is equal to a specified <see cref="Gu.Units.DataUnit"/> object. /// </summary> /// <param name="other">An instance of <see cref="Gu.Units.DataUnit"/> object to compare with this instance.</param> /// <returns> /// true if <paramref name="other"/> represents the same DataUnit as this instance; otherwise, false. /// </returns> public bool Equals(DataUnit other) { return(this.symbol == other.symbol); }
/// <summary> /// Creates an instance of <see cref="Gu.Units.DataUnit"/> from its string representation /// </summary> /// <param name="text">The string representation of the <see cref="Gu.Units.DataUnit"/></param> /// <param name="result">The parsed <see cref="DataUnit"/></param> /// <returns>True if an instance of <see cref="DataUnit"/> could be parsed from <paramref name="text"/></returns> public static bool TryParse(string text, out DataUnit result) { return(UnitParser <DataUnit> .TryParse(text, out result)); }