A RuleProperty represents a single property name, with potentially multiple property-labels, each label can have 1 or more values.
Inheritance: System.Dynamic.DynamicObject
示例#1
0
 internal PropertyValue(PropertyRule parent, string label, string collectionName = null)
 {
     ParentPropertyRule = parent;
     Label = label;
     _collectionName = collectionName;
 }
示例#2
0
 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();
 }
示例#3
0
 internal PropertyRule GetRuleProperty(string name)
 {
     var property = this[name];
     if (property == null) {
         property = new PropertyRule(this, name);
         _properties.Add(property);
     }
     return property;
 }