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