You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.WindowsRuntimeComponent.g.cs
+10-24Lines changed: 10 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
// THE SOFTWARE.
37
37
38
38
usingSystem;
39
+
usingSystem.Globalization;
39
40
usingSystem.Linq;
40
41
usingJetBrains.Annotations;
41
42
usingUnitsNet.Units;
@@ -51,7 +52,7 @@ namespace UnitsNet
51
52
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
52
53
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
53
54
// Public classes must be sealed (NotInheritable in Visual Basic). If your programming model requires polymorphism, you can create a public interface and implement that interface on the classes that must be polymorphic.
54
-
publicsealedpartialclassInformation
55
+
publicsealedpartialclassInformation:IQuantity
55
56
{
56
57
/// <summary>
57
58
/// The numeric value this quantity was constructed with.
@@ -308,8 +309,8 @@ public static string GetAbbreviation(InformationUnit unit)
308
309
/// Get unit abbreviation string.
309
310
/// </summary>
310
311
/// <param name="unit">Unit to get abbreviation for.</param>
311
-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
312
312
/// <returns>Unit abbreviation string.</returns>
313
+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -729,6 +730,8 @@ public static bool TryParseUnit(string str, out InformationUnit unit)
729
730
/// </example>
730
731
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1077,7 +1060,7 @@ public string ToString(InformationUnit unit)
1077
1060
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1090,6 +1073,7 @@ public string ToString(InformationUnit unit, [CanBeNull] string cultureName)
1090
1073
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1105,6 +1089,7 @@ public string ToString(InformationUnit unit, [CanBeNull] string cultureName, int
1105
1089
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
Copy file name to clipboardExpand all lines: UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.WindowsRuntimeComponent.g.cs
+10-24Lines changed: 10 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
// THE SOFTWARE.
37
37
38
38
usingSystem;
39
+
usingSystem.Globalization;
39
40
usingSystem.Linq;
40
41
usingJetBrains.Annotations;
41
42
usingUnitsNet.Units;
@@ -51,7 +52,7 @@ namespace UnitsNet
51
52
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
52
53
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
53
54
// Public classes must be sealed (NotInheritable in Visual Basic). If your programming model requires polymorphism, you can create a public interface and implement that interface on the classes that must be polymorphic.
54
-
publicsealedpartialclassLength
55
+
publicsealedpartialclassLength:IQuantity
55
56
{
56
57
/// <summary>
57
58
/// The numeric value this quantity was constructed with.
@@ -288,8 +289,8 @@ public static string GetAbbreviation(LengthUnit unit)
288
289
/// Get unit abbreviation string.
289
290
/// </summary>
290
291
/// <param name="unit">Unit to get abbreviation for.</param>
291
-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
292
292
/// <returns>Unit abbreviation string.</returns>
293
+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -669,6 +670,8 @@ public static bool TryParseUnit(string str, out LengthUnit unit)
669
670
/// </example>
670
671
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1009,7 +992,7 @@ public string ToString(LengthUnit unit)
1009
992
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1022,6 +1005,7 @@ public string ToString(LengthUnit unit, [CanBeNull] string cultureName)
1022
1005
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -1037,6 +1021,7 @@ public string ToString(LengthUnit unit, [CanBeNull] string cultureName, int sign
1037
1021
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
Copy file name to clipboardExpand all lines: UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.WindowsRuntimeComponent.g.cs
+10-24Lines changed: 10 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
// THE SOFTWARE.
37
37
38
38
usingSystem;
39
+
usingSystem.Globalization;
39
40
usingSystem.Linq;
40
41
usingJetBrains.Annotations;
41
42
usingUnitsNet.Units;
@@ -51,7 +52,7 @@ namespace UnitsNet
51
52
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
52
53
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
53
54
// Public classes must be sealed (NotInheritable in Visual Basic). If your programming model requires polymorphism, you can create a public interface and implement that interface on the classes that must be polymorphic.
54
-
publicsealedpartialclassLevel
55
+
publicsealedpartialclassLevel:IQuantity
55
56
{
56
57
/// <summary>
57
58
/// The numeric value this quantity was constructed with.
@@ -188,8 +189,8 @@ public static string GetAbbreviation(LevelUnit unit)
188
189
/// Get unit abbreviation string.
189
190
/// </summary>
190
191
/// <param name="unit">Unit to get abbreviation for.</param>
191
-
/// <param name="provider">Format to use for localization. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
192
192
/// <returns>Unit abbreviation string.</returns>
193
+
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -369,6 +370,8 @@ public static bool TryParseUnit(string str, out LevelUnit unit)
369
370
/// </example>
370
371
/// <param name="cultureName">Name of culture (ex: "en-US") to use when parsing number and unit. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -669,7 +652,7 @@ public string ToString(LevelUnit unit)
669
652
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -682,6 +665,7 @@ public string ToString(LevelUnit unit, [CanBeNull] string cultureName)
682
665
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
@@ -697,6 +681,7 @@ public string ToString(LevelUnit unit, [CanBeNull] string cultureName, int signi
697
681
/// <param name="cultureName">Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
0 commit comments