@@ -289,68 +289,22 @@ public static class NumberToMassMomentOfInertiaExtensions
289
289
#region SlugSquareFoot
290
290
291
291
/// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
292
- public static MassMomentOfInertia SlugSquareFeet ( this int value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
292
+ public static MassMomentOfInertia SlugSquareFeet < T > ( this T value ) => MassMomentOfInertia . FromSlugSquareFeet ( Convert . ToDouble ( value ) ) ;
293
293
294
294
/// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
295
- public static MassMomentOfInertia ? SlugSquareFeet ( this int ? value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
296
-
297
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
298
- public static MassMomentOfInertia SlugSquareFeet ( this long value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
299
-
300
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
301
- public static MassMomentOfInertia ? SlugSquareFeet ( this long ? value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
302
-
303
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
304
- public static MassMomentOfInertia SlugSquareFeet ( this double value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
305
-
306
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
307
- public static MassMomentOfInertia ? SlugSquareFeet ( this double ? value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
308
-
309
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
310
- public static MassMomentOfInertia SlugSquareFeet ( this float value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
311
-
312
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
313
- public static MassMomentOfInertia ? SlugSquareFeet ( this float ? value ) => MassMomentOfInertia . FromSlugSquareFeet ( value ) ;
314
-
315
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
316
- public static MassMomentOfInertia SlugSquareFeet ( this decimal value ) => MassMomentOfInertia . FromSlugSquareFeet ( Convert . ToDouble ( value ) ) ;
317
-
318
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareFeet(UnitsNet.QuantityValue)" />
319
- public static MassMomentOfInertia ? SlugSquareFeet ( this decimal ? value ) => MassMomentOfInertia . FromSlugSquareFeet ( value == null ? ( double ? ) null : Convert . ToDouble ( value . Value ) ) ;
295
+ [ Obsolete ( "Nullable type support has been deprecated and will be removed in a future release." ) ]
296
+ public static MassMomentOfInertia ? SlugSquareFeet < T > ( this T ? value ) where T : struct => MassMomentOfInertia . FromSlugSquareFeet ( value == null ? ( double ? ) null : Convert . ToDouble ( value . Value ) ) ;
320
297
321
298
#endregion
322
299
323
300
#region SlugSquareInch
324
301
325
302
/// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
326
- public static MassMomentOfInertia SlugSquareInches ( this int value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
303
+ public static MassMomentOfInertia SlugSquareInches < T > ( this T value ) => MassMomentOfInertia . FromSlugSquareInches ( Convert . ToDouble ( value ) ) ;
327
304
328
305
/// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
329
- public static MassMomentOfInertia ? SlugSquareInches ( this int ? value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
330
-
331
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
332
- public static MassMomentOfInertia SlugSquareInches ( this long value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
333
-
334
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
335
- public static MassMomentOfInertia ? SlugSquareInches ( this long ? value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
336
-
337
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
338
- public static MassMomentOfInertia SlugSquareInches ( this double value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
339
-
340
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
341
- public static MassMomentOfInertia ? SlugSquareInches ( this double ? value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
342
-
343
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
344
- public static MassMomentOfInertia SlugSquareInches ( this float value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
345
-
346
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
347
- public static MassMomentOfInertia ? SlugSquareInches ( this float ? value ) => MassMomentOfInertia . FromSlugSquareInches ( value ) ;
348
-
349
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
350
- public static MassMomentOfInertia SlugSquareInches ( this decimal value ) => MassMomentOfInertia . FromSlugSquareInches ( Convert . ToDouble ( value ) ) ;
351
-
352
- /// <inheritdoc cref="MassMomentOfInertia.FromSlugSquareInches(UnitsNet.QuantityValue)" />
353
- public static MassMomentOfInertia ? SlugSquareInches ( this decimal ? value ) => MassMomentOfInertia . FromSlugSquareInches ( value == null ? ( double ? ) null : Convert . ToDouble ( value . Value ) ) ;
306
+ [ Obsolete ( "Nullable type support has been deprecated and will be removed in a future release." ) ]
307
+ public static MassMomentOfInertia ? SlugSquareInches < T > ( this T ? value ) where T : struct => MassMomentOfInertia . FromSlugSquareInches ( value == null ? ( double ? ) null : Convert . ToDouble ( value . Value ) ) ;
354
308
355
309
#endregion
356
310
0 commit comments