17 references to _cleanParentList
PresentationFramework (17)
System\Windows\Documents\TextElementCollectionHelper.cs (17)
41
lock (
_cleanParentList
)
43
for (int i = 0; i <
_cleanParentList
.Length; i++)
45
if (
_cleanParentList
[i] != null)
47
ParentCollectionPair pair = (ParentCollectionPair)
_cleanParentList
[i].Target;
51
_cleanParentList
[i] = null;
64
lock (
_cleanParentList
)
71
index = firstFreeIndex >= 0 ? firstFreeIndex :
_cleanParentList
.Length - 1;
72
_cleanParentList
[index] = new WeakReference(new ParentCollectionPair(parent, collection));
87
lock (
_cleanParentList
)
115
WeakReference parentReference =
_cleanParentList
[index];
117
Array.Copy(
_cleanParentList
, 0,
_cleanParentList
, 1, index);
119
_cleanParentList
[0] = parentReference;
130
for (int i = 0; i <
_cleanParentList
.Length; i++)
132
if (
_cleanParentList
[i] == null)
141
ParentCollectionPair pair = (ParentCollectionPair)
_cleanParentList
[i].Target;
146
_cleanParentList
[i] = null;