C# Класс System.ComponentModel.ScriptExpression

Represents a simple script-like expression consisting of at most one assignment expression (optional), and at most one method expression (also optional), whose parameters are simple property.subproperty paths or a single property.subproperty lookup.
Показать файл Открыть проект

Открытые методы

Метод Описание
Execute ( IScriptExpressionNameResolver nameResolver ) : object

Executes a script expression.

Parse ( string expression ) : ScriptExpression

Parses text representing a script expression into a ScriptExpression instance.

Приватные методы

Метод Описание
IsValidIdentifier ( string name ) : bool
ParseExpression ( string expression, bool allowMethod ) : IValueExpression
ParseMethodCall ( string expression ) : IValueExpression
ParseParts ( string expression ) : string[]
ParsePropertyAccess ( string expression ) : PropertyAccessExpression
ScriptExpression ( string script, IValueExpression rhs ) : System
ScriptExpression ( string script, IValueExpression rhs, IValueExpression lhs ) : System

Описание методов

Execute() публичный Метод

Executes a script expression.
public Execute ( IScriptExpressionNameResolver nameResolver ) : object
nameResolver IScriptExpressionNameResolver An object that can resolve names in the script expression to object instances.
Результат object

Parse() публичный статический Метод

Parses text representing a script expression into a ScriptExpression instance.
public static Parse ( string expression ) : ScriptExpression
expression string The text to parse.
Результат ScriptExpression