9 writes to head
System (9)
compmod\system\collections\generic\linkedlist.cs (9)
94
head
= result;
105
head
= newNode;
116
head
= result;
129
head
= node;
165
head
= null;
318
head
= null;
339
head
= newNode;
349
head
= null;
355
head
= node.next;
36 references to head
System (36)
compmod\system\collections\generic\linkedlist.cs (36)
60
get { return
head
;}
64
get { return
head
== null? null:
head
.prev;}
93
if ( node ==
head
) {
104
if ( node ==
head
) {
111
if (
head
== null) {
115
InternalInsertNodeBefore(
head
, result);
124
if (
head
== null) {
128
InternalInsertNodeBefore(
head
, node);
136
if (
head
== null) {
140
InternalInsertNodeBefore(
head
, result);
148
if (
head
== null) {
152
InternalInsertNodeBefore(
head
, node);
158
LinkedListNode<T> current =
head
;
187
LinkedListNode<T> node =
head
;
192
} while (node !=
head
);
197
LinkedListNode<T> node =
head
;
206
} while (node !=
head
);
214
} while (node !=
head
);
221
if (
head
== null) return null;
223
LinkedListNode<T> last =
head
.prev;
271
if (
head
== null) { throw new InvalidOperationException(SR.GetString(SR.LinkedListEmpty)); }
272
InternalRemoveNode(
head
);
276
if (
head
== null) { throw new InvalidOperationException(SR.GetString(SR.LinkedListEmpty)); }
277
InternalRemoveNode(
head
.prev);
336
Debug.Assert(
head
== null && count == 0, "LinkedList must be empty when this method is called!");
346
Debug.Assert(
head
!= null, "This method shouldn't be called on empty list!");
348
Debug.Assert(count == 1 &&
head
== node, "this should only be true for a list with only one node");
354
if (
head
== node) {
439
LinkedListNode<T> node =
head
;
445
} while (node !=
head
);
484
node = list.
head
;
530
if (node == list.
head
) {
542
node = list.
head
;
624
get { return next == null || next == list.
head
? null: next;}
628
get { return prev == null || this == list.
head
? null: prev;}