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
ファイル: PropertyValue.cs プロジェクト: virmitio/devtools
 internal PropertyValue(PropertyRule parent, string label, string collectionName = null)
 {
     ParentPropertyRule = parent;
     Label = label;
     _collectionName = collectionName;
 }
コード例 #2
0
ファイル: PropertyValue.cs プロジェクト: ericschultz/devtools
 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
ファイル: Rule.cs プロジェクト: coapp-deprecated/devtools
 internal PropertyRule GetRuleProperty(string name)
 {
     var property = this[name];
     if (property == null) {
         property = new PropertyRule(this, name);
         _properties.Add(property);
     }
     return property;
 }