Table of Contents

Class PropertyMap

Namespace
NRules.RuleModel
Assembly
NRules.RuleModel.dll

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

int

this[string]

Retrieves property by name.

public object this[string name] { get; }

Parameters

name string

Property name.

Property Value

object

Matching property value.

Methods

GetEnumerator()

Returns an enumerator for the contained rule properties.

public IEnumerator<RuleProperty> GetEnumerator()

Returns

IEnumerator<RuleProperty>

TryGetProperty(string, out RuleProperty)

Retrieves property by name if it exists.

public bool TryGetProperty(string name, out RuleProperty property)

Parameters

name string

Property name.

property RuleProperty

Matching property if found.

Returns

bool

If found true, otherwise false.