A RuleProperty represents a single property name, with potentially multiple property-labels, each label can have 1 or more values.
Inheritance: System.Dynamic.DynamicObject
Exemple #1
0
 internal PropertyValue(PropertyRule parent, string label, string collectionName = null)
 {
     ParentPropertyRule = parent;
     Label = label;
     _collectionName = collectionName;
 }
 internal PropertyValue(PropertyRule parent, string label, IEnumerable<string> collectionNames = null)
 {
     ParentPropertyRule = parent;
     Label = label;
     _collectionNames = (collectionNames == null) ? null : collectionNames.Where( each => !string.IsNullOrEmpty(each)).ToArray();
 }
Exemple #3
0
 internal PropertyRule GetRuleProperty(string name)
 {
     var property = this[name];
     if (property == null) {
         property = new PropertyRule(this, name);
         _properties.Add(property);
     }
     return property;
 }