protected internal static bool Equals(IDimension a, IDimension b) { return(!(a == null || b == null) && a.IsDimensionEquals(b) && a.Exponent == b.Exponent); }