Пример #1
0
 /// <summary>
 /// Creates the new (attribute could not exists before) attribute value 
 /// (<see cref="IsModified"/> of attribute is false).
 /// </summary>
 /// <param name="propertyName">Name of the single property.</param>
 /// <param name="value">The value.</param>
 public void CreatePropertyWithValue(string propertyName, long? value)
 {
     TikPropertyItem item = new TikPropertyItem(value);
     items.Add(propertyName, item);
 }
Пример #2
0
        private TikPropertyItem GetOrCreateItem(string propertyName)
        {
            TikPropertyItem result;
            if (!items.TryGetValue(propertyName, out result))
            {
                result = new TikPropertyItem();
                items.Add(propertyName, result);
            }

            return result;
        }