2 writes to OrderedList
System.Data.Entity (2)
System\Data\Metadata\Edm\MetadataCollection.cs (2)
693OrderedList = new List<T>(); 698this.OrderedList = new List<T>(original.OrderedList.Count + additionalCapacity);
33 references to OrderedList
System.Data.Entity (33)
System\Data\Metadata\Edm\MetadataCollection.cs (33)
113return _collectionData.OrderedList.AsReadOnly(); 133return _collectionData.OrderedList.Count; 148return _collectionData.OrderedList[index]; 230if (EqualIdentity(collectionData.OrderedList, orderIndex.ExactIndex, identity)) 245if (EqualIdentity(collectionData.OrderedList, orderIndex.InexactIndexes[i], identity)) 322int listCount = collectionData.OrderedList.Count; 345collectionData.IdentityDictionary = new Dictionary<string, OrderedIndex>(collectionData.OrderedList.Count + 1, StringComparer.OrdinalIgnoreCase); 346for (int i = 0; i < collectionData.OrderedList.Count; ++i) 348AddToDictionary(collectionData, collectionData.OrderedList[i].Identity, i, false); 359collectionData.OrderedList[index] = item; 364collectionData.OrderedList.Add(item); 494else if (EqualIdentity(collectionData.OrderedList, orderIndex.ExactIndex, identity)) 509if (EqualIdentity(collectionData.OrderedList, orderIndex.InexactIndexes[i], identity)) 520for(int i = 0; i < collectionData.OrderedList.Count; ++i) 522if (String.Equals(collectionData.OrderedList[i].Identity, identity, StringComparison.OrdinalIgnoreCase)) 534for (int i = 0; i < collectionData.OrderedList.Count; ++i) 536if (EqualIdentity(collectionData.OrderedList, i, identity)) 557if (index != -1 && _collectionData.OrderedList[index] == item) 582if (_collectionData.OrderedList.Count > array.Length - arrayIndex) 587_collectionData.OrderedList.CopyTo(array, arrayIndex); 622for (int i = 0; i < _collectionData.OrderedList.Count; i++) 624_collectionData.OrderedList[i].SetReadOnly(); 626_collectionData.OrderedList.TrimExcess(); 655(ignoreCase && String.Equals(_collectionData.OrderedList[index].Identity, identity, StringComparison.OrdinalIgnoreCase)) || 656EqualIdentity(_collectionData.OrderedList, index, identity), "different exact identity"); 657return (0 <= index) ? _collectionData.OrderedList[index] : null; 698this.OrderedList = new List<T>(original.OrderedList.Count + additionalCapacity); 699foreach (T item in original.OrderedList) 701this.OrderedList.Add(item); 704if (UseSortedListCrossover <= this.OrderedList.Capacity) 706this.IdentityDictionary = new Dictionary<string, OrderedIndex>(this.OrderedList.Capacity, StringComparer.OrdinalIgnoreCase); 717for (int i = 0; i < this.OrderedList.Count; ++i) 719AddToDictionary(this, this.OrderedList[i].Identity, i, false);