[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.ExpressionInfo

ExpressionInfo Class

The ExpressionInfo class stores, parses, and provides information about an expression. ExpressionInfo provides aggregates, global collections, etc., as well as information about the expected data type of the expression's result.

Implements
Namespace: GrapeCity.Enterprise.Data.Expressions
Assembly: MESCIUS.ActiveReports.Core.Data.ExpressionInfo.dll
Syntax
[TypeConverter(typeof(ExpressionInfo.ExpressionInfoConverter))]
public abstract class ExpressionInfo : IComparable

Constructors

Name Description
ExpressionInfo(string, ExpressionResultType)

Initializes a new instance of the ExpressionInfo class.

Fields

Name Description
EmptyString

Returns a reference to an ExpressionInfo object representing a constant empty string expression.

Properties

Name Description
Expression

Gets the original expression string.

IsConstant

Gets a value indicating whether the ExpressionInfo object represents a constant value.

IsEmptyString

Get the value indicating if the expression represents an empty string.

IsExpression

Gets a value indicating whether the ExpressionInfo object represents a dynamic expression.

ResultType

Gets the expected data type of the expression evaluation result.

Methods

Name Description
Children()

Returns the subexpressions that make up the given expression.

CompareTo(object)

Compares this instance to a specified object and returns an integer that indicates their relationship to one another.

Equals(ExpressionInfo)

Determines whether the specified ExpressionInfo object represents the same expression as this one.

Equals(object)

Overloaded. Determines whether the specified ExpressionInfo object represents the same expression as this one.

FromString(string, ExpressionResultType)

Creates an ExpressionInfo object from a string expression representation.

GenerateExpressionString()

Generates the expression string.

GetHashCode()

Serves as the default hash function.

Parse(string)

Parses the specified expression string and returns an ExpressionInfo object that represents the specified expression.

Parse(string, ExpressionResultType)

Parses the specified expression string and returns an ExpressionInfo object that represents the specified expression.

ToString()

Returns the string representation of this ExpressionInfo object.

Validate()

Checks if the expression contains any errors.

Operators

Name Description
operator ==(ExpressionInfo, ExpressionInfo)

Determines whether the two ExpressionInfo objects represent the same expression.

implicit operator string(ExpressionInfo)

Defines an operator that allows implicit conversion from an ExpressionInfo to a string.

implicit operator ExpressionInfo(string)

Defines an operator that allows implicit conversion from a string to an ExpressionInfo.

operator !=(ExpressionInfo, ExpressionInfo)

Determines whether the specified ExpressionInfo objects represent different expressions.

Extension Methods