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#.
Namespace: Mastersign.Bench.PropertyCollections
The VariableResolver type exposes the following members.
| Name | Description | |
|---|---|---|
| VariableResolver |
Initializes a new instance of VariableResolver.
| |
| VariableResolver(IPropertyCollection) |
Initializes a new instance of VariableResolver.
|
| Name | Description | |
|---|---|---|
| ValueSource |
A property collection, which will be used as to retrieve the referenced property values.
| |
| VariablePattern |
A regular expression, that detects variable references.
The defaut expression is \$(?<name>.+?)\$ |
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ResolveGroupValue |
Returns the resolved or transformed value of the specified property.
| |
| ResolveValue |
Returns the resolved or transformed value of the specified property.
| |
| ToString | (Inherited from Object.) |