Share via


NumberExpression Class

Definition

NumberExpression - represents a property which is either a float or a string expression which resolves to a float.

public class NumberExpression : AdaptiveExpressions.Properties.ExpressionProperty<double>
type NumberExpression = class
    inherit ExpressionProperty<double>
Public Class NumberExpression
Inherits ExpressionProperty(Of Double)
Inheritance
NumberExpression

Remarks

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

Constructors

NumberExpression()

Initializes a new instance of the NumberExpression class.

NumberExpression(Double)

Initializes a new instance of the NumberExpression class.

NumberExpression(Expression)

Initializes a new instance of the NumberExpression class.

NumberExpression(Func<Object,Object>)

Initializes a new instance of the NumberExpression class.

NumberExpression(JToken)

Initializes a new instance of the NumberExpression class.

NumberExpression(String)

Initializes a new instance of the NumberExpression 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(Double to NumberExpression)

Converts a floating point number value to a NumberExpression instance.

Implicit(Expression to NumberExpression)

Converts an Expression instance to a NumberExpression instance.

Implicit(JToken to NumberExpression)

Converts a JSON Token to an NumberExpression instance.

Implicit(String to NumberExpression)

Converts a string value to a NumberExpression instance.

Applies to