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
Type | Name |
---|---|
System.Object | a |
System.Object | b |
CoerceLong(Object)
View Source
Declaration
public static long? CoerceLong(object o)
Returns
System.Nullable<System.Int64>
Parameters
Type | Name |
---|---|
System.Object | o |
CoerceDouble(Object)
View Source
Declaration
public static double? CoerceDouble(object o)
Returns
System.Nullable<System.Double>
Parameters
Type | Name |
---|---|
System.Object | o |
CoerceString(Object)
View Source
Declaration
public static string CoerceString(object o)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | o |
Add(Object, Object)
View Source
Declaration
public static object Add(object a, object b)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | a |
System.Object | b |
Min(Object, Object)
View Source
Declaration
public static object Min(object a, object b)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | a |
System.Object | b |
Max(Object, Object)
View Source
Declaration
public static object Max(object a, object b)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | a |
System.Object | b |
Sum(IEnumerable)
View Source
Declaration
public static object Sum(IEnumerable values)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | values |
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
Type | Name |
---|---|
System.Collections.IEnumerable | source |
System.Func<System.Object,System.Object,System.Object> | fn |
System.Object | seed |