ValueExpressionParserT Class

Represents a typed parser for IValueExpressionAttribute instances.

Definition

Namespace: Gemstone.Expressions.Model
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.128 -- Release Build+cfed08c7efcabf54b006110ecd862a6bfcb7b819
public class ValueExpressionParser<T> : ExpressionCompiler<T>
where T : class
Inheritance
Object    ExpressionCompilerT, Object    ExpressionCompilerT    ValueExpressionParserT
Derived

Type Parameters

T
Type of associated model.

Constructors

ValueExpressionParserT(String) Creates a new ValueExpressionParserT.
ValueExpressionParserT(IValueExpressionAttribute, PropertyInfo) Creates a new ValueExpressionParser from the specified valueExpressionAttribute and property parameters deriving the base expression value from GetPropertyUpdateValue(PropertyInfo).

Properties

CompiledAction Gets Action delegate for compiled expression.
(Inherited from ExpressionCompilerTResult)
CompiledExpression Gets the compiled Linq Expression after C# Code Expression is compiled.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
CompiledFunction Gets FuncTResult delegate for compiled expression.
(Inherited from ExpressionCompilerTResult)
Expression Gets the C# code expression to compile.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
InstanceParameterType Gets or sets the instance parameter Type used for defining expression accessible field values, defaults to TInstanceParameter.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
TypeRegistry Gets or sets the TypeRegistry used for compilation.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)

Methods

ApplyDefaults(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
ApplyDefaultsTExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
ApplyDefaultsForTypeTValueExpressionAttribute(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T applying any specified DefaultValueAttribute or TValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
ApplyDefaultsForTypeTValueExpressionAttribute, TExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified DefaultValueAttribute or TValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
Compile Compiles C# Expression.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
CreateInstance(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will create new instance of type T applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties.
CreateInstanceTExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will create new instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties.
CreateInstanceForTypeTValueExpressionAttribute(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will create new instance of type T applying any specified DefaultValueAttribute or TValueExpressionAttribute instances that are declared on the type T properties.
CreateInstanceForTypeTValueExpressionAttribute, TExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will create new instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified DefaultValueAttribute or TValueExpressionAttribute instances that are declared on the type T properties.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExecuteAction Executes compiled Action based expression.
(Inherited from ExpressionCompilerTResult)
ExecuteAction(TInstanceParameter) Executes compiled ActionT based expression.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
ExecuteFunction Executes compiled FuncTResult based expression.
(Inherited from ExpressionCompilerTResult)
ExecuteFunction(TInstanceParameter) Executes compiled FuncT, TResult based expression.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InitializeType Validates that any static type T functionality is initialized.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Parse Parses the expression with the provided parameter expression scope and optional typeRegistry.
ToString Returns a string that represents the ExpressionCompilerTResult, TInstanceParameter, i.e., the Expression value.
(Inherited from ExpressionCompilerTResult, TInstanceParameter)
UpdateExpressions(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will execute expression assignments on an instance of type T where expressions are TypeConvertedValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
UpdateExpressionsTExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will execute expression assignments on an instance of type T accepting a contextual IValueExpressionScopeT object parameter where expressions are TypeConvertedValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
UpdateExpressionsForTypeTValueExpressionAttribute(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will execute expression assignments on an instance of type T where expressions are TValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
UpdateExpressionsForTypeTValueExpressionAttribute, TExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will execute expression assignments on an instance of type T accepting a contextual IValueExpressionScopeT object parameter where expressions are TValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
UpdateInstance(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T applying any specified UpdateValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
UpdateInstanceTExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified UpdateValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
UpdateInstanceForTypeTValueExpressionAttribute(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T applying any specified TValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate ActionT.
UpdateInstanceForTypeTValueExpressionAttribute, TExpressionScope(IEnumerablePropertyInfo, TypeRegistry) Generates a delegate that will update an instance of type T accepting a contextual IValueExpressionScopeT object parameter applying any specified TValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
UpdateProperties Generates a delegate that will update an instance of type T assigning values from TypeConvertedValueExpressionAttribute instances that are declared on the type T properties to the property values. Target T instance is accepted as the parameter to the returned delegate ActionT.

See Also