DynamicNumber
Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class DynamicNumber
Methods
IsNumber(Type)
View Source
Declaration
public static bool IsNumber(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
TryGetRanking(Type, out Int32)
View Source
Declaration
public static bool TryGetRanking(Type type, out int ranking)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
System.Int32 | ranking |
GetNumber(Type)
View Source
Declaration
public static IDynamicNumber GetNumber(Type type)
Returns
Parameters
Type | Name |
---|---|
System.Type | type |
Get(Object)
View Source
Declaration
public static IDynamicNumber Get(object obj)
Returns
Parameters
Type | Name |
---|---|
System.Object | obj |
GetNumber(Object, Object)
View Source
Declaration
public static IDynamicNumber GetNumber(object lhs, object rhs)
Returns
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
AssertNumbers(String, Object, Object)
View Source
Declaration
public static IDynamicNumber AssertNumbers(string name, object lhs, object rhs)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
System.Object | lhs |
System.Object | rhs |
Add(Object, Object)
View Source
Declaration
public static object Add(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Sub(Object, Object)
View Source
Declaration
public static object Sub(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Subtract(Object, Object)
View Source
Declaration
public static object Subtract(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Mul(Object, Object)
View Source
Declaration
public static object Mul(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Multiply(Object, Object)
View Source
Declaration
public static object Multiply(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Div(Object, Object)
View Source
Declaration
public static object Div(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Divide(Object, Object)
View Source
Declaration
public static object Divide(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Mod(Object, Object)
View Source
Declaration
public static object Mod(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Min(Object, Object)
View Source
Declaration
public static object Min(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Max(Object, Object)
View Source
Declaration
public static object Max(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Pow(Object, Object)
View Source
Declaration
public static object Pow(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
Log(Object, Object)
View Source
Declaration
public static object Log(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
CompareTo(Object, Object)
View Source
Declaration
public static int CompareTo(object lhs, object rhs)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseAnd(Object, Object)
View Source
Declaration
public static object BitwiseAnd(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseOr(Object, Object)
View Source
Declaration
public static object BitwiseOr(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseXOr(Object, Object)
View Source
Declaration
public static object BitwiseXOr(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseLeftShift(Object, Object)
View Source
Declaration
public static object BitwiseLeftShift(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseRightShift(Object, Object)
View Source
Declaration
public static object BitwiseRightShift(object lhs, object rhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
System.Object | rhs |
BitwiseNot(Object)
View Source
Declaration
public static object BitwiseNot(object lhs)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | lhs |
TryParse(String, out Object)
View Source
Declaration
public static bool TryParse(string strValue, out object result)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | strValue |
System.Object | result |
TryParseIntoBestFit(String, out Object)
View Source
Declaration
public static bool TryParseIntoBestFit(string strValue, out object result)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | strValue |
System.Object | result |