27 using System.Collections.Generic;
28 using System.Collections.ObjectModel;
29 using System.Diagnostics;
31 namespace SiliconStudio.Core.VisualStudio
36 [DebuggerDisplay(
"Count = {Count}")]
38 : KeyedCollection<string, PropertyItem>
44 : base(StringComparer.InvariantCultureIgnoreCase)
65 PropertyItem existingItem = (Contains(GetKeyForItem(item))) ?
this[GetKeyForItem(item)] : null;
67 if (existingItem == null)
70 base.InsertItem(index, item.Clone());
74 existingItem.Value = item.Value;
81 base.SetItem(index, item.Clone());
string Value
Gets or sets the value.
override void InsertItem(int index, PropertyItem item)
A key/value pair used by PropertyItemCollection
override string GetKeyForItem(PropertyItem item)
A collection of PropertyItem
PropertyItemCollection(IEnumerable< PropertyItem > items)
Initializes a new instance of the PropertyItemCollection class.
override void SetItem(int index, PropertyItem item)
PropertyItemCollection()
Initializes a new instance of the PropertyItemCollection class.