Skip to content

Commit daa7528

Browse files
committed
Minor cleanup
1 parent f6f7547 commit daa7528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitsNet/CustomCode/Quantity.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public partial class Quantity
1212

1313
static Quantity()
1414
{
15-
var quantityTypes = Quantity.ByName.Values;
15+
ICollection<QuantityInfo> quantityInfos = ByName.Values;
1616
Types = Enum.GetValues(typeof(QuantityType)).Cast<QuantityType>().Except(new[] { QuantityType.Undefined }).ToArray();
17-
Names = quantityTypes.Select(qt => qt.Name).ToArray();
17+
Names = quantityInfos.Select(qt => qt.Name).ToArray();
1818

19-
InfosLazy = new Lazy<QuantityInfo[]>(() => quantityTypes
19+
InfosLazy = new Lazy<QuantityInfo[]>(() => quantityInfos
2020
.OrderBy(quantityInfo => quantityInfo.Name)
2121
.ToArray());
2222
}

0 commit comments

Comments
 (0)