Class ExpressionUtils
Inheritance
System.Object
ExpressionUtils
Assembly: Steeltoe.Common.Expression.dll
Syntax
public static class ExpressionUtils : object
Methods
|
Edit this page
View Source
ConvertTypedValue(IEvaluationContext, ITypedValue, Type)
Declaration
public static object ConvertTypedValue(IEvaluationContext context, ITypedValue typedValue, Type targetType)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
ITypedValue |
typedValue |
|
Type |
targetType |
|
Returns
Type |
Description |
System.Object |
|
|
Edit this page
View Source
ConvertTypedValue<T>(IEvaluationContext, ITypedValue)
Declaration
public static T ConvertTypedValue<T>(IEvaluationContext context, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
ITypedValue |
typedValue |
|
Returns
Type Parameters
|
Edit this page
View Source
ToBoolean(ITypeConverter, ITypedValue)
Declaration
public static bool ToBoolean(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ToByte(ITypeConverter, ITypedValue)
Declaration
public static byte ToByte(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Byte |
|
|
Edit this page
View Source
ToChar(ITypeConverter, ITypedValue)
Declaration
public static char ToChar(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Char |
|
|
Edit this page
View Source
ToDouble(ITypeConverter, ITypedValue)
Declaration
public static double ToDouble(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Double |
|
|
Edit this page
View Source
ToFloat(ITypeConverter, ITypedValue)
Declaration
public static float ToFloat(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Single |
|
|
Edit this page
View Source
ToInt(ITypeConverter, ITypedValue)
Declaration
public static int ToInt(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
ToLong(ITypeConverter, ITypedValue)
Declaration
public static long ToLong(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
ToSByte(ITypeConverter, ITypedValue)
Declaration
public static sbyte ToSByte(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.SByte |
|
|
Edit this page
View Source
ToShort(ITypeConverter, ITypedValue)
Declaration
public static short ToShort(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.Int16 |
|
|
Edit this page
View Source
ToUInt(ITypeConverter, ITypedValue)
Declaration
public static uint ToUInt(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Edit this page
View Source
ToULong(ITypeConverter, ITypedValue)
Declaration
public static ulong ToULong(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Edit this page
View Source
ToUShort(ITypeConverter, ITypedValue)
Declaration
public static ushort ToUShort(ITypeConverter typeConverter, ITypedValue typedValue)
Parameters
Type |
Name |
Description |
ITypeConverter |
typeConverter |
|
ITypedValue |
typedValue |
|
Returns
Type |
Description |
System.UInt16 |
|