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(); }
internal PropertyRule GetRuleProperty(string name) { var property = this[name]; if (property == null) { property = new PropertyRule(this, name); _properties.Add(property); } return property; }