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/Acceleration.extra.cs
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -19,31 +19,16 @@
19
19
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
// THE SOFTWARE.
21
21
22
-
// ReSharper disable once CheckNamespace
23
-
24
-
usingSystem;
25
-
usingUnitsNet.Units;
26
-
27
22
namespaceUnitsNet
28
23
{
29
-
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
30
-
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
31
-
// 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.
32
-
#if WINDOWS_UWP
33
-
publicsealedpartialclassAcceleration
34
-
#else
35
24
publicpartialstructAcceleration
36
-
#endif
37
25
{
38
-
// Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
39
-
#if !WINDOWS_UWP
40
26
/// <summary>
41
27
/// Multiply <see cref="Acceleration"/> and <see cref="Density"/> to get <see cref="SpecificWeight"/>.
// copies of the Software, and to permit persons to whom the Software is
9
9
// furnished to do so, subject to the following conditions:
10
-
//
10
+
//
11
11
// The above copyright notice and this permission notice shall be included in
12
12
// all copies or substantial portions of the Software.
13
-
//
13
+
//
14
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -22,17 +22,9 @@
22
22
usingSystem;
23
23
usingUnitsNet.Units;
24
24
25
-
// ReSharper disable once CheckNamespace
26
25
namespaceUnitsNet
27
26
{
28
-
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
29
-
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
30
-
// 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.
31
-
#if WINDOWS_UWP
32
-
publicsealedpartialclassAmplitudeRatio
33
-
#else
34
27
publicpartialstructAmplitudeRatio
35
-
#endif
36
28
{
37
29
/// <summary>
38
30
/// Initializes a new instance of the <see cref="AmplitudeRatio" /> struct from the specified electric potential
@@ -41,14 +33,7 @@ public partial struct AmplitudeRatio
41
33
/// resistance.
42
34
/// </summary>
43
35
/// <param name="voltage">The electric potential referenced to one volt.</param>
44
-
45
-
// Windows Runtime Component does not allow public methods/ctors with same number of parameters: https://msdn.microsoft.com/en-us/library/br230301.aspx#Overloaded methods
// copies of the Software, and to permit persons to whom the Software is
9
9
// furnished to do so, subject to the following conditions:
10
-
//
10
+
//
11
11
// The above copyright notice and this permission notice shall be included in
12
12
// all copies or substantial portions of the Software.
13
-
//
13
+
//
14
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -21,20 +21,10 @@
21
21
22
22
usingSystem;
23
23
24
-
// ReSharper disable once CheckNamespace
25
24
namespaceUnitsNet
26
25
{
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
-
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
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
-
publicsealedpartialclassAngle
32
-
#else
33
26
publicpartialstructAngle
34
-
#endif
35
27
{
36
-
// Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
// copies of the Software, and to permit persons to whom the Software is
9
9
// furnished to do so, subject to the following conditions:
10
-
//
10
+
//
11
11
// The above copyright notice and this permission notice shall be included in
12
12
// all copies or substantial portions of the Software.
13
-
//
13
+
//
14
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -21,17 +21,9 @@
21
21
22
22
usingSystem;
23
23
24
-
// ReSharper disable once CheckNamespace
25
24
namespaceUnitsNet
26
25
{
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
-
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
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
-
publicsealedpartialclassArea
32
-
#else
33
26
publicpartialstructArea
34
-
#endif
35
27
{
36
28
#region Static Methods
37
29
@@ -48,8 +40,6 @@ public static Area FromCircleRadius(Length radius)
48
40
49
41
#endregion
50
42
51
-
// Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
0 commit comments