Click or drag to resize

ValueExpressionParserT Class

Represents a typed parser for IValueExpressionAttribute instances.
Inheritance Hierarchy
SystemObject
  ExpressionCompiler
    CompiledExpressionT
      GSF.ComponentModelValueExpressionParserT
        GSF.ComponentModelValueExpressionParser

Namespace: GSF.ComponentModel
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class ValueExpressionParser<T> : CompiledExpression<T>
View Source

Type Parameters

T
Type of associated model.

The ValueExpressionParserT type exposes the following members.

Constructors
 NameDescription
Public methodValueExpressionParserT(String) Creates a new ValueExpressionParserT.
Public methodValueExpressionParserT(IValueExpressionAttribute, PropertyInfo) Creates a new ValueExpressionParser from the specified valueExpressionAttribute and property parameters deriving the base expression value from GetPropertyUpdateValue(PropertyInfo).
Top
Properties
 NameDescription
Public propertyDynamicTypeLookup
(Inherited from ExpressionCompiler)
Public propertyExpression
(Inherited from ExpressionCompiler)
Public propertyExpressionType
(Inherited from ExpressionCompiler)
Public propertyGlobal
(Inherited from CompiledExpressionT)
Public propertyLambdaExpression
(Inherited from ExpressionCompiler)
Public propertyStringToParse
(Inherited from ExpressionCompiler)
Public propertyTypeRegistry
(Inherited from ExpressionCompiler)
Top
Methods
 NameDescription
Public methodStatic memberApplyDefaults(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.
Public methodStatic memberApplyDefaultsTExpressionScope(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.
Public methodStatic memberApplyDefaultsForTypeTValueExpressionAttribute(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.
Public methodStatic memberApplyDefaultsForTypeTValueExpressionAttribute, 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.
Protected methodBuildTree
(Inherited from ExpressionCompiler)
Public methodCall
(Inherited from CompiledExpressionT)
Protected methodClearCompiledMethod
(Inherited from CompiledExpressionT)
Public methodCompile
(Inherited from CompiledExpressionT)
Public methodCompile``1(String)
(Inherited from ExpressionCompiler)
Public methodCompileCall
(Inherited from CompiledExpressionT)
Public methodStatic memberCreateInstance(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.
Public methodStatic memberCreateInstanceTExpressionScope(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.
Public methodStatic memberCreateInstanceForTypeTValueExpressionAttribute(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.
Public methodStatic memberCreateInstanceForTypeTValueExpressionAttribute, 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.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEval
(Inherited from CompiledExpressionT)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGenerateLambda``2
(Inherited from CompiledExpressionT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberInitializeType Validates that any static type T functionality is initialized.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParse Parses the expression with the provided parameter expression scope and optional typeRegistry.
Public methodScopeCompile
(Inherited from CompiledExpressionT)
Public methodScopeCompileCall
(Inherited from CompiledExpressionT)
Public methodScopeParse
(Inherited from ExpressionCompiler)
Public methodToString
(Inherited from ExpressionCompiler)
Public methodStatic memberUpdateExpressions(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.
Public methodStatic memberUpdateExpressionsTExpressionScope(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.
Public methodStatic memberUpdateExpressionsForTypeTValueExpressionAttribute(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.
Public methodStatic memberUpdateExpressionsForTypeTValueExpressionAttribute, 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.
Public methodStatic memberUpdateInstance(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.
Public methodStatic memberUpdateInstanceTExpressionScope(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.
Public methodStatic memberUpdateInstanceForTypeTValueExpressionAttribute(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.
Public methodStatic memberUpdateInstanceForTypeTValueExpressionAttribute, 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.
Public methodStatic memberUpdateProperties 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.
Protected methodWrapExpression(Expression, Boolean)
(Inherited from ExpressionCompiler)
Protected methodWrapExpression``1(Expression)
(Inherited from ExpressionCompiler)
Protected methodWrapExpressionCall``1
(Inherited from ExpressionCompiler)
Protected methodWrapToNull
(Inherited from ExpressionCompiler)
Protected methodWrapToVoid
(Inherited from ExpressionCompiler)
Top
Fields
 NameDescription
Protected fieldParser
(Inherited from ExpressionCompiler)
Protected fieldPstr
(Inherited from ExpressionCompiler)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also