9 writes to head
System.Collections (9)
System\Collections\Generic\LinkedList.cs (9)
97
head
= result;
110
head
= newNode;
124
head
= result;
140
head
= node;
184
head
= null;
370
head
= null;
392
head
= newNode;
404
head
= null;
412
head
= node.next;
35 references to head
System.Collections (35)
System\Collections\Generic\LinkedList.cs (35)
56
get { return
head
; }
61
get { return
head
?.prev; }
95
if (node ==
head
)
108
if (node ==
head
)
117
if (
head
== null)
123
InternalInsertNodeBefore(
head
, result);
133
if (
head
== null)
139
InternalInsertNodeBefore(
head
, node);
148
if (
head
== null)
154
InternalInsertNodeBefore(
head
, result);
163
if (
head
== null)
169
InternalInsertNodeBefore(
head
, node);
176
LinkedListNode<T>? current =
head
;
210
LinkedListNode<T>? node =
head
;
217
} while (node !=
head
);
223
LinkedListNode<T>? node =
head
;
236
} while (node !=
head
);
247
} while (node !=
head
);
255
if (
head
== null) return null;
257
LinkedListNode<T>? last =
head
.prev;
314
if (
head
== null) { throw new InvalidOperationException(SR.LinkedListEmpty); }
315
InternalRemoveNode(
head
);
320
if (
head
== null) { throw new InvalidOperationException(SR.LinkedListEmpty); }
321
InternalRemoveNode(
head
.prev!);
389
Debug.Assert(
head
== null && count == 0, "LinkedList must be empty when this method is called!");
400
Debug.Assert(
head
!= null, "This method shouldn't be called on empty list!");
403
Debug.Assert(count == 1 &&
head
== node, "this should only be true for a list with only one node");
410
if (
head
== node)
482
LinkedListNode<T>? node =
head
;
491
} while (node !=
head
);
515
_node = list.
head
;
551
if (_node == _list.
head
)
566
_node = _list.
head
;
612
get { return next == null || next == list!.
head
? null : next; }
617
get { return prev == null || this == list!.
head
? null : prev; }