Class ExecutionContext<T>
Inheritance
System.Object
ExecutionContext<T>
Implements
System.Collections.IEnumerable
Assembly: Albatross.Expression.dll
Syntax
public class ExecutionContext<T> : IExecutionContext<T>, IEnumerable<ContextValue>, IEnumerable
Type Parameters
Constructors
ExecutionContext(IParser, Boolean, Boolean, Boolean, TryGetValueDelegate<T>)
Declaration
public ExecutionContext(IParser parser, bool caseSensitive, bool cacheExternalValue, bool failWhenMissingVariable, TryGetValueDelegate<T> tryGetValueDelegate)
Parameters
Type |
Name |
Description |
IParser |
parser |
|
System.Boolean |
caseSensitive |
|
System.Boolean |
cacheExternalValue |
|
System.Boolean |
failWhenMissingVariable |
|
TryGetValueDelegate<T> |
tryGetValueDelegate |
|
Properties
CacheExternalValue
Declaration
public bool CacheExternalValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
CaseSensitive
Declaration
public bool CaseSensitive { get; }
Property Value
Type |
Description |
System.Boolean |
|
Compiled
Declaration
public bool Compiled { get; }
Property Value
Type |
Description |
System.Boolean |
|
FailWhenMissingVariable
Declaration
public bool FailWhenMissingVariable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Parser
Declaration
public IParser Parser { get; }
Property Value
Store
Declaration
public Dictionary<string, ContextValue> Store { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, ContextValue> |
|
TryGetExternalData
Declaration
public TryGetValueDelegate<T> TryGetExternalData { get; }
Property Value
Methods
Build()
Declaration
Clear()
Declaration
Eval(String, T, Type)
Declaration
public object Eval(string expression, T input, Type outputDataType = null)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
T |
input |
|
System.Type |
outputDataType |
|
Returns
Type |
Description |
System.Object |
|
GetEnumerator()
Declaration
public IEnumerator<ContextValue> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<ContextValue> |
|
GetValue(String, T)
Declaration
public object GetValue(string name, T input)
Parameters
Type |
Name |
Description |
System.String |
name |
|
T |
input |
|
Returns
Type |
Description |
System.Object |
|
Set(ContextValue)
Declaration
public void Set(ContextValue value)
Parameters
TryGetValue(String, T, out Object)
Declaration
public bool TryGetValue(string name, T input, out object data)
Parameters
Type |
Name |
Description |
System.String |
name |
|
T |
input |
|
System.Object |
data |
|
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods