Skip to main content

CompareTypeUtils

Assembly: ServiceStack.dll​
View Source​
Declaration
public static class CompareTypeUtils

Methods​

CompareTo(Object, Object)​

View Source​
Declaration
public static int CompareTo(object a, object b)
Returns​

System.Int32

Parameters​
TypeName
System.Objecta
System.Objectb

CoerceLong(Object)​

View Source​
Declaration
public static long? CoerceLong(object o)
Returns​

System.Nullable<System.Int64>

Parameters​
TypeName
System.Objecto

CoerceDouble(Object)​

View Source​
Declaration
public static double? CoerceDouble(object o)
Returns​

System.Nullable<System.Double>

Parameters​
TypeName
System.Objecto

CoerceString(Object)​

View Source​
Declaration
public static string CoerceString(object o)
Returns​

System.String

Parameters​
TypeName
System.Objecto

Add(Object, Object)​

View Source​
Declaration
public static object Add(object a, object b)
Returns​

System.Object

Parameters​
TypeName
System.Objecta
System.Objectb

Min(Object, Object)​

View Source​
Declaration
public static object Min(object a, object b)
Returns​

System.Object

Parameters​
TypeName
System.Objecta
System.Objectb

Max(Object, Object)​

View Source​
Declaration
public static object Max(object a, object b)
Returns​

System.Object

Parameters​
TypeName
System.Objecta
System.Objectb

Sum(IEnumerable)​

View Source​
Declaration
public static object Sum(IEnumerable values)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IEnumerablevalues

Aggregate(IEnumerable, Func<Object, Object, Object>, Object)​

View Source​
Declaration
public static object Aggregate(IEnumerable source, Func<object, object, object> fn, object seed = null)
Returns​

System.Object

Parameters​
TypeName
System.Collections.IEnumerablesource
System.Func<System.Object,System.Object,System.Object>fn
System.Objectseed