public BaseUnit(string name, string symbol, string quantityName) : base(name, symbol, quantityName) { this.Parts = new UnitParts(new[] { UnitAndPower.Create(this) }); }
private bool Equals(UnitAndPower other) { return(string.Equals(this.UnitName, other.UnitName, StringComparison.Ordinal) && this.Power == other.Power); }
protected bool Equals(UnitAndPower other) { return(Equals(_unit, other._unit) && _power == other._power); }
protected bool Equals(UnitAndPower other) { return(string.Equals(this.UnitName, other.UnitName) && this.Power == other.Power); }