Click or drag to resize

GroupedVariableResolver Class

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

The default syntax for a grouped variable reference is an expression like $GROUP: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 GroupVariablePattern.

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

Inheritance Hierarchy
SystemObject
  Mastersign.Bench.PropertyCollectionsGroupedVariableResolver

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

The GroupedVariableResolver type exposes the following members.

Constructors
  NameDescription
Public methodGroupedVariableResolver
Initializes a new instance of GroupedVariableResolver.
Public methodGroupedVariableResolver(IGroupedPropertyCollection)
Initializes a new instance of GroupedVariableResolver.
Top
Properties
  NameDescription
Public propertyGroupVariablePattern
A regular expression, that detects variable references. The defaut expression is \$(?<group>.*?):(?<name>.+?)\$
Public propertyValueSource
A group property collection, which will be used as to retrieve the referenced property values.
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