=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
/// <summary>
|
||||
/// Provides a collection of static utility methods for performing common numeric operations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=6831b9b -->
|
||||
public static class NumberUtils
|
||||
{
|
||||
/// <summary>
|
||||
@@ -10,6 +11,7 @@ public static class NumberUtils
|
||||
/// </summary>
|
||||
/// <param name="value">The object to evaluate.</param>
|
||||
/// <returns><c>true</c> if <paramref name="value"/> is one of the supported numeric types (sbyte, byte, short, ushort, int, uint, long, ulong, float, double, or decimal); otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=1d802ac body=c01f438 -->
|
||||
public static bool IsNumber(this object value)
|
||||
{
|
||||
return value is sbyte
|
||||
@@ -30,6 +32,7 @@ public static class NumberUtils
|
||||
/// </summary>
|
||||
/// <param name="value">The object to convert to a <see cref="double"/>.</param>
|
||||
/// <returns>A <see cref="double"/> that represents the converted value.</returns>
|
||||
/// <!-- aidoc:v1 sig=0769d25 body=41720e3 -->
|
||||
public static double ToDouble(this object value)
|
||||
{
|
||||
return Convert.ToDouble(value);
|
||||
|
||||
Reference in New Issue
Block a user