2 writes to _collectionData
System.Data.Entity (2)
System\Data\Metadata\Edm\MetadataCollection.cs (2)
54
_collectionData
= new CollectionData();
388
CollectionData swappedOutData = Interlocked.CompareExchange<CollectionData>(ref
_collectionData
, newData, originalData);
17 references to _collectionData
System.Data.Entity (17)
System\Data\Metadata\Edm\MetadataCollection.cs (17)
113
return
_collectionData
.OrderedList.AsReadOnly();
133
return
_collectionData
.OrderedList.Count;
148
return
_collectionData
.OrderedList[index];
288
AddInternalHelper(item,
_collectionData
, false);
379
CollectionData originalData =
_collectionData
;
470
return (0 <= IndexOf(
_collectionData
, identity, false));
555
int index = IndexOf(
_collectionData
, item.Identity, false);
557
if (index != -1 &&
_collectionData
.OrderedList[index] == item)
582
if (
_collectionData
.OrderedList.Count > array.Length - arrayIndex)
587
_collectionData
.OrderedList.CopyTo(array, arrayIndex);
622
for (int i = 0; i <
_collectionData
.OrderedList.Count; i++)
624
_collectionData
.OrderedList[i].SetReadOnly();
626
_collectionData
.OrderedList.TrimExcess();
653
int index = IndexOf(
_collectionData
, EntityUtil.GenericCheckArgumentNull(identity, "identity"), ignoreCase);
655
(ignoreCase && String.Equals(
_collectionData
.OrderedList[index].Identity, identity, StringComparison.OrdinalIgnoreCase)) ||
656
EqualIdentity(
_collectionData
.OrderedList, index, identity), "different exact identity");
657
return (0 <= index) ?
_collectionData
.OrderedList[index] : null;