We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f7547 commit daa7528Copy full SHA for daa7528
UnitsNet/CustomCode/Quantity.cs
@@ -12,11 +12,11 @@ public partial class Quantity
12
13
static Quantity()
14
{
15
- var quantityTypes = Quantity.ByName.Values;
+ ICollection<QuantityInfo> quantityInfos = ByName.Values;
16
Types = Enum.GetValues(typeof(QuantityType)).Cast<QuantityType>().Except(new[] { QuantityType.Undefined }).ToArray();
17
- Names = quantityTypes.Select(qt => qt.Name).ToArray();
+ Names = quantityInfos.Select(qt => qt.Name).ToArray();
18
19
- InfosLazy = new Lazy<QuantityInfo[]>(() => quantityTypes
+ InfosLazy = new Lazy<QuantityInfo[]>(() => quantityInfos
20
.OrderBy(quantityInfo => quantityInfo.Name)
21
.ToArray());
22
}
0 commit comments