public override int GetHashCode() { unchecked { return((CounterUnit.GetHashCode() * 397) ^ DenominatorUnit.GetHashCode()); } }
public IReadOnlyList <DecomposableUnitItem> Decompose() { // generator : FractionUnitGenerator.Add_Decompose var denominatorUnit = DenominatorUnit.GetBasicUnit(); return(new [] { new DecomposableUnitItem(CounterUnit, 1), new DecomposableUnitItem(denominatorUnit.Unit, -denominatorUnit.Power) }); /* * var decomposer = new UnitDecomposer(); * decomposer.Add(CounterUnit, 1); * decomposer.Add(DenominatorUnit, -1); * return decomposer.Items; */ }
public bool Equals(PlanarDensityUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(IrradianceUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(SpecificHeatCapacityUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(AccelerationUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(MassStreamUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(VelocityUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(LinearForceUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(EnergyMassDensityUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }
public bool Equals(PressureDropUnit other) { return(CounterUnit.Equals(other.CounterUnit) && DenominatorUnit.Equals(other.DenominatorUnit)); }