Click or drag to resize

VariableResolver Class

This resolver for group property values, resolves variable references in property values.

The default syntax for a variable reference is an expression like $NAME$. Every occurance of such an expression is replaced by the value of the referenced property from ValueSource. This syntax can be changed by setting a custom expression for VariablePattern.

If the referenced property does not exists, the expression is transformed by replacing it with #NAME#.

Inheritance Hierarchy
SystemObject
  Mastersign.Bench.PropertyCollectionsVariableResolver

Namespace:  Mastersign.Bench.PropertyCollections
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public class VariableResolver : IValueResolver, 
	IGroupedValueResolver

The VariableResolver type exposes the following members.

Constructors
  NameDescription
Public methodVariableResolver
Initializes a new instance of VariableResolver.
Public methodVariableResolver(IPropertyCollection)
Initializes a new instance of VariableResolver.
Top
Properties
  NameDescription
Public propertyValueSource
A property collection, which will be used as to retrieve the referenced property values.
Public propertyVariablePattern
A regular expression, that detects variable references. The defaut expression is \$(?<name>.+?)\$
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodResolveGroupValue
Returns the resolved or transformed value of the specified property.
Public methodResolveValue
Returns the resolved or transformed value of the specified property.
Public methodToString (Inherited from Object.)
Top
See Also