Dirk Schuermans
Dirk Schuermans
* Are you doing deterministic builds? * Verify settings in visual studio, just adding the symbol server is not enough afaik: * Debugging > General > Uncheck "Enable Just My...
@loic-sharma Any progress on defining multiple upstreams? If I understand the current docs correctly, it's only possible to define a single upstream?
@bilal-fazlani it's been 11 days now, any thoughts?
> @dschuermans I implemented strict equality, if you want to look over it. > > Based on decision in [#1017 (comment)](https://github.com/angularsen/UnitsNet/issues/1017#issuecomment-1028402841). Nice, But if I understand correctly, the case I...
> > > @dschuermans I implemented strict equality, if you want to look over it. > > > Based on decision in [#1017 (comment)](https://github.com/angularsen/UnitsNet/issues/1017#issuecomment-1028402841). > > > > > >...
Well, one solution I see here (not sure if it's technically feasible) is to have 2 separate packages of UnitsNet: 1. Uses strict equality and produces the same hash code...
I managed to "fix" it, at least for my needs, with the following extension: ```csharp public static int GetUnitsNetHashCode(this TUnit unit) { if (unit is IQuantity quantity) { var valueOfUnitAsBaseUnitRounded...
Another case where it goes wrong: ```csharp Dictionary test = new Dictionary(); Length one = Length.FromMeters(1); Length two = Length.FromCentimeters(100); test.Add(one, "The one with meters"); test.Add(two, "The one with centimeters");...
Luckily, my fix doesn't seem to break stuff (found this test in #541) ```csharp var length = new Length(1.0, (LengthUnit)2); var area = new Area(1.0, (AreaUnit)2); Assert.AreNotEqual(length, area); Assert.AreNotEqual(length.GetHashCode(), area.GetHashCode());...
@angularsen or @tmilnthorp any thoughts?