Skip to main content

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
TypeName
System.Typetype

TryGetRanking(Type, out Int32)

View Source
Declaration
public static bool TryGetRanking(Type type, out int ranking)
Returns

System.Boolean

Parameters
TypeName
System.Typetype
System.Int32ranking

GetNumber(Type)

View Source
Declaration
public static IDynamicNumber GetNumber(Type type)
Returns

ServiceStack.IDynamicNumber

Parameters
TypeName
System.Typetype

Get(Object)

View Source
Declaration
public static IDynamicNumber Get(object obj)
Returns

ServiceStack.IDynamicNumber

Parameters
TypeName
System.Objectobj

GetNumber(Object, Object)

View Source
Declaration
public static IDynamicNumber GetNumber(object lhs, object rhs)
Returns

ServiceStack.IDynamicNumber

Parameters
TypeName
System.Objectlhs
System.Objectrhs

AssertNumbers(String, Object, Object)

View Source
Declaration
public static IDynamicNumber AssertNumbers(string name, object lhs, object rhs)
Returns

ServiceStack.IDynamicNumber

Parameters
TypeName
System.Stringname
System.Objectlhs
System.Objectrhs

Add(Object, Object)

View Source
Declaration
public static object Add(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Sub(Object, Object)

View Source
Declaration
public static object Sub(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Subtract(Object, Object)

View Source
Declaration
public static object Subtract(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Mul(Object, Object)

View Source
Declaration
public static object Mul(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Multiply(Object, Object)

View Source
Declaration
public static object Multiply(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Div(Object, Object)

View Source
Declaration
public static object Div(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Divide(Object, Object)

View Source
Declaration
public static object Divide(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Mod(Object, Object)

View Source
Declaration
public static object Mod(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Min(Object, Object)

View Source
Declaration
public static object Min(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Max(Object, Object)

View Source
Declaration
public static object Max(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Pow(Object, Object)

View Source
Declaration
public static object Pow(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

Log(Object, Object)

View Source
Declaration
public static object Log(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

CompareTo(Object, Object)

View Source
Declaration
public static int CompareTo(object lhs, object rhs)
Returns

System.Int32

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseAnd(Object, Object)

View Source
Declaration
public static object BitwiseAnd(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseOr(Object, Object)

View Source
Declaration
public static object BitwiseOr(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseXOr(Object, Object)

View Source
Declaration
public static object BitwiseXOr(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseLeftShift(Object, Object)

View Source
Declaration
public static object BitwiseLeftShift(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseRightShift(Object, Object)

View Source
Declaration
public static object BitwiseRightShift(object lhs, object rhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs
System.Objectrhs

BitwiseNot(Object)

View Source
Declaration
public static object BitwiseNot(object lhs)
Returns

System.Object

Parameters
TypeName
System.Objectlhs

TryParse(String, out Object)

View Source
Declaration
public static bool TryParse(string strValue, out object result)
Returns

System.Boolean

Parameters
TypeName
System.StringstrValue
System.Objectresult

TryParseIntoBestFit(String, out Object)

View Source
Declaration
public static bool TryParseIntoBestFit(string strValue, out object result)
Returns

System.Boolean

Parameters
TypeName
System.StringstrValue
System.Objectresult