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/CustomCode/Quantities/Level.extra.cs
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,9 @@ namespace UnitsNet
27
27
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
28
28
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
29
29
// 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.
30
-
#if WINDOWS_UWP
31
-
publicsealedpartialclassLevel
32
-
#else
30
+
// Cannot have methods with same name and same number of parameters.
31
+
#if !WINDOWS_UWP
33
32
publicpartialstructLevel
34
-
#endif
35
33
{
36
34
/// <summary>
37
35
/// Initializes a new instance of the logarithmic <see cref="Level" /> struct which is the ratio of a quantity Q to a
@@ -50,8 +48,9 @@ public Level(double quantity, double reference)
0 commit comments