Skip to content

Commit 5283caf

Browse files
ExportedTypes to GetTypes()
1 parent d3bdd17 commit 5283caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitsNet/UnitConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private static bool TryParseUnit(Type unitType, string unitName, out object unit
397397
return true;
398398
}
399399

400-
private static List<Type> UnitTypes = UnitsNetAssembly.ExportedTypes
400+
private static List<Type> UnitTypes = UnitsNetAssembly.GetTypes()
401401
.Where(x => x.FullName.StartsWith(UnitTypeNamespace))
402402
.ToList();
403403

@@ -413,7 +413,7 @@ private static bool TryGetUnitType(string quantityName, out Type unitType)
413413
return true;
414414
}
415415

416-
private static List<Type> QuantityTypes = UnitsNetAssembly.ExportedTypes
416+
private static List<Type> QuantityTypes = UnitsNetAssembly.GetTypes()
417417
.Where(x => x.FullName.StartsWith(QuantityNamespace))
418418
.ToList();
419419

0 commit comments

Comments
 (0)