Share via


ObjectExpression<T> Class

Definition

ObjectExpression(T) - represents a property which is either an object of type T or a string expression which resolves to a object of type T.

public class ObjectExpression<T> : AdaptiveExpressions.Properties.ExpressionProperty<T>
type ObjectExpression<'T> = class
    inherit ExpressionProperty<'T>
Public Class ObjectExpression(Of T)
Inherits ExpressionProperty(Of T)

Type Parameters

T

the type of object.

Inheritance
ObjectExpression<T>
Derived

Remarks

String values are always interpreted as an expression, whether it has '=' prefix or not.

Constructors

ObjectExpression<T>()

Initializes a new instance of the ObjectExpression<T> class.

ObjectExpression<T>(Expression)

Initializes a new instance of the ObjectExpression<T> class.

ObjectExpression<T>(Func<Object,Object>)

Initializes a new instance of the ObjectExpression<T> class.

ObjectExpression<T>(JToken)

Initializes a new instance of the ObjectExpression<T> class.

ObjectExpression<T>(String)

Initializes a new instance of the ObjectExpression<T> class.

ObjectExpression<T>(T)

Initializes a new instance of the ObjectExpression<T> class.

Properties

ExpressionText

Gets or sets the expression text to evaluate to get the value.

(Inherited from ExpressionProperty<T>)
Value

Gets or sets the raw value of the expression property.

(Inherited from ExpressionProperty<T>)

Methods

ConvertObject(Object)

Convert raw object to desired value type.

(Inherited from ExpressionProperty<T>)
GetObject(Object)

Get value as object.

(Inherited from ExpressionProperty<T>)
GetValue(Object)

Get the value.

(Inherited from ExpressionProperty<T>)
SetObject(Object)

Set value as object.

(Inherited from ExpressionProperty<T>)
SetValue(Object)

Sets the value.

(Inherited from ExpressionProperty<T>)
ToExpression()

This will return the existing expression or ConstantExpression(Value) if the value is non-complex type.

(Inherited from ExpressionProperty<T>)
ToString()

Returns a string that represents the current object.

(Inherited from ExpressionProperty<T>)
TryGetObject(Object)

Try Get value as object.

(Inherited from ExpressionProperty<T>)
TryGetValue(Object)

Try to Get the value.

(Inherited from ExpressionProperty<T>)

Operators

Implicit(Expression to ObjectExpression<T>)
Implicit(JToken to ObjectExpression<T>)
Implicit(String to ObjectExpression<T>)
Implicit(T to ObjectExpression<T>)

Applies to