4 writes to Items
System.ServiceModel.Primitives (4)
System\ServiceModel\SynchronizedCollection.cs (4)
18Items = new List<T>(); 24Items = new List<T>(); 35Items = new List<T>(list); 46Items = new List<T>(list.Length);
39 references to Items
System.ServiceModel.Primitives (39)
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
641foreach (EndpointDispatcher item in Items) 661EndpointDispatcher item = Items[index];
System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (3)
50List<TChannel> items = Items; 68TChannel oldItem = Items[index]; 76TChannel oldItem = Items[index];
System\ServiceModel\ExtensionCollection.cs (3)
61List<IExtension<T>> items = Items; 81List<IExtension<T>> items = Items; 116Items[index].Detach(_owner);
System\ServiceModel\SynchronizedCollection.cs (21)
49Items.Add(list[i]); 57get { lock (_sync) { return Items.Count; } } 73return Items[index]; 80if (index < 0 || index >= Items.Count) 83SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1))); 95int index = Items.Count; 112Items.CopyTo(array, index); 120return Items.Contains(item); 128return Items.GetEnumerator(); 144if (index < 0 || index > Items.Count) 147SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count))); 156int count = Items.Count; 160if (object.Equals(Items[i], item)) 187if (index < 0 || index >= Items.Count) 190SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1))); 199Items.Clear(); 204Items.Insert(index, item); 209Items.RemoveAt(index); 214Items[index] = item; 224return ((IList)Items).GetEnumerator(); 241((IList)Items).CopyTo(array, index);
System\ServiceModel\SynchronizedKeyedCollection.cs (10)
78for (int i = 0; i < Items.Count; i++) 80T item = Items[i]; 170for (int i = 0; i < Items.Count; i++) 172T item = Items[i]; 188return Items.Contains(item); 205foreach (T item in Items) 251for (int i = 0; i < Items.Count; i++) 253if (_comparer.Equals(key, GetKeyForItem(Items[i]))) 266K key = GetKeyForItem(Items[index]); 296K oldKey = GetKeyForItem(Items[index]);