Class PropertyMap
Readonly map of rule properties.
public class PropertyMap : IEnumerable<RuleProperty>, IEnumerable
- Inheritance
-
PropertyMap
- Implements
- Inherited Members
Constructors
PropertyMap(IEnumerable<RuleProperty>)
Creates new map of rule properties.
public PropertyMap(IEnumerable<RuleProperty> properties)
Parameters
properties
IEnumerable<RuleProperty>Rule properties to put in the map.
Properties
Count
Number of properties in the map.
public int Count { get; }
Property Value
this[string]
Retrieves property by name.
public object this[string name] { get; }
Parameters
name
stringProperty name.
Property Value
- object
Matching property value.
Methods
GetEnumerator()
Returns an enumerator for the contained rule properties.
public IEnumerator<RuleProperty> GetEnumerator()
Returns
TryGetProperty(string, out RuleProperty)
Retrieves property by name if it exists.
public bool TryGetProperty(string name, out RuleProperty property)
Parameters
name
stringProperty name.
property
RulePropertyMatching property if found.
Returns
- bool
If found
true
, otherwisefalse
.