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