Version 2.1.11

GenericNumberUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.Utilities.Editor
public static class GenericNumberUtility
Inheritance
  • System.Object
  • GenericNumberUtility

Methods

ConvertNumber<T>(Object)
public static T ConvertNumber<T>(object value)
Parameters
System.Object value

Returns
T

Type Parameters
T

IsNumber(Type)
public static bool IsNumber(Type type)
Parameters
System.Type type

Returns
System.Boolean

NumberIsInRange(Object, Double, Double)
public static bool NumberIsInRange(object number, double min, double max)
Parameters
System.Object number

System.Double min

System.Double max

Returns
System.Boolean