ExpressionEvaluator MembersKentico 8.1 API Reference
The ExpressionEvaluator type exposes the following members.
Constructors

  NameDescription
Public methodExpressionEvaluator
Constructor.
Back to Top
Methods

  NameDescription
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodEvaluate
Evaluates the expression and returns the result. Sets the result of security check into MacroEvalParameters object.
Protected methodEvaluateChild
Evaluates the child expression (uses the same context, does not create a child context).
Protected methodEvaluateInternal
Evaluates the expression and returns the result.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Protected methodGetDebugIndent
Returns the indentation of the debug item (counts deepness withing blocks {...})
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodHasNumberOfChildren
Returns true if the current expression node has exactly specified number of children.
Protected methodCheckForTimeout
Checks whether the evaluation time did not exceed the specified limit.
Protected methodStatic memberIsEnumObjectEqual
Compares the given Enum object with any object. If the object is not enum of the same type, then compares it according its values (integer enum with integer, otherwise as text constants).
Public methodStatic memberIsEqual
Returns true if first parameter is equal to the second. Handles several specialities: 1) Guid is equal also to string representation of GUID (case insensitive regardless the context setting). 2) Simple datatypes are equal to their ToString representation. 3) InfoObject is equal also to string constant if it's either its display name or code name. 4) Two info objects are equal when they have same object type and same ID. 5) Empty string is equal to null.
Protected methodStatic memberIsInfoInfoEqual
Returns true if two Info objects are equal (have same object type and ID).
Protected methodIsMethodWithName
Returns true if the type of current expression is MethodCall with specified name.
Protected methodStatic memberIsObjectStringEqual
Returns true if given object has code name or display name equal to specified name.
Protected methodStatic memberIsStringStringEqual
Returns true if the two strings are equal. Empty string is equal to null.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Protected methodUpdateEvaluationContextFromParameters
Reads all the inline macro parameters and modifies the default evaluation context accordingly.
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Properties

  NameDescription
Public propertyContext
Evaluation context.
Public propertyExpression
Expression to evaluate.
Protected propertyChildren
Child expressions of the expression.
Protected propertyName
Name of the data member or method call.
Protected propertyParent
Parent expression of the expression.
Protected propertyType
Returns the expression type.
Protected propertyValue
Value of the value expression (is null for expression types like method, property, etc.).
Back to Top
See Also