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: Common/GeneratedCode/Quantities/Duration.Common.g.cs
+2
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,7 @@ public static Duration FromMinutes(QuantityValue minutes)
305
305
/// <summary>
306
306
/// Get Duration from Months.
307
307
/// </summary>
308
+
[System.Obsolete("Use Month30 instead, which makes it clear that this is an approximate unit based on 30 days per month. The duration of a month varies, but the Gregorian solar calendar has 365.2425/12 = 30.44 days on average.")]
308
309
#if WINDOWS_UWP
309
310
[Windows.Foundation.Metadata.DefaultOverload]
310
311
publicstaticDurationFromMonths(doublemonths)
@@ -375,6 +376,7 @@ public static Duration FromWeeks(QuantityValue weeks)
375
376
/// <summary>
376
377
/// Get Duration from Years.
377
378
/// </summary>
379
+
[System.Obsolete("Use Year365 instead, which makes it clear that this is an approximate unit based on 365 days per year. The duration of a year varies due to corrections such as leap years, since a Gregorian solar calendar has 365.2425 days.")]
Copy file name to clipboardExpand all lines: Common/GeneratedCode/Quantities/Flow.Common.g.cs
+19
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ namespace UnitsNet
52
52
/// In physics and engineering, in particular fluid dynamics and hydrometry, the volumetric flow rate, (also known as volume flow rate, rate of fluid flow or volume velocity) is the volume of fluid which passes through a given surface per unit time. The SI unit is m³/s (cubic meters per second). In US Customary Units and British Imperial Units, volumetric flow rate is often expressed as ft³/s (cubic feet per second). It is usually represented by the symbol Q.
53
53
/// </summary>
54
54
// ReSharper disable once PartialTypeWithSinglePart
55
+
[System.Obsolete("Deprecated due to github issue #363, please use VolumeFlow instead")]
55
56
56
57
// Windows Runtime Component has constraints on public types: https://msdn.microsoft.com/en-us/library/br230301.aspx#Declaring types in Windows Runtime Components
57
58
// Public structures can't have any members other than public fields, and those fields must be value types or strings.
@@ -325,6 +326,7 @@ public static Flow FromCentilitersPerMinute(QuantityValue centilitersperminute)
325
326
/// <summary>
326
327
/// Get Flow from CubicDecimetersPerMinute.
327
328
/// </summary>
329
+
[System.Obsolete("Deprecated due to github issue #363, please use VolumeFlow instead")]
Copy file name to clipboardExpand all lines: Common/UnitDefinitions/Flow.json
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
{
2
2
"Name": "Flow",
3
+
"ObsoleteText": "Deprecated due to github issue #363, please use VolumeFlow instead",
3
4
"BaseUnit": "CubicMeterPerSecond",
4
5
"XmlDoc": "In physics and engineering, in particular fluid dynamics and hydrometry, the volumetric flow rate, (also known as volume flow rate, rate of fluid flow or volume velocity) is the volume of fluid which passes through a given surface per unit time. The SI unit is m³/s (cubic meters per second). In US Customary Units and British Imperial Units, volumetric flow rate is often expressed as ft³/s (cubic feet per second). It is usually represented by the symbol Q.",
[System.Obsolete("Use Month30 instead, which makes it clear that this is an approximate unit based on 30 days per month. The duration of a month varies, but the Gregorian solar calendar has 365.2425/12 = 30.44 days on average.")]
[System.Obsolete("Use Year365 instead, which makes it clear that this is an approximate unit based on 365 days per year. The duration of a year varies due to corrections such as leap years, since a Gregorian solar calendar has 365.2425 days.")]
0 commit comments