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