Наследование: IPropertyValue
Пример #1
0
 /// <summary>
 ///   Gets Or Adds a PropertyValue with the given label and collection.
 /// </summary>
 /// <param name="label"> </param>
 /// <param name="collection"> </param>
 /// <returns> </returns>
 internal PropertyValue GetPropertyValue(string label, IEnumerable<string> collections = null)
 {
     var result = _propertyValues.Where(each => each.Label == label).FirstOrDefault();
     if (result == null) {
         _propertyValues.Add(result = new PropertyValue(this, label, collections.IsNullOrEmpty() ? null : collections));
     }
     return result;
 }
Пример #2
0
 /// <summary>
 ///   Gets Or Adds a PropertyValue with the given label and collection.
 /// </summary>
 /// <param name="label"> </param>
 /// <param name="collection"> </param>
 /// <returns> </returns>
 internal PropertyValue GetPropertyValue(string label, string collection = null)
 {
     var result = _propertyValues.Where(each => each.Label == label).FirstOrDefault();
     if (result == null) {
         _propertyValues.Add(result = new PropertyValue(this, label, string.IsNullOrEmpty(collection) ? null : collection));
     }
     return result;
 }