4 writes to _firstTarget
System.Threading.Tasks.Dataflow (4)
Internal\TargetRegistry.cs (4)
182
_firstTarget
= _lastTarget = null;
219
_firstTarget
= _lastTarget = node;
239
_firstTarget
= node;
270
if (_firstTarget == node)
_firstTarget
= next;
12 references to _firstTarget
System.Threading.Tasks.Dataflow (12)
Internal\TargetRegistry.cs (12)
179
LinkedTargetInfo? firstTarget =
_firstTarget
;
207
internal LinkedTargetInfo? FirstTargetNode { get { return
_firstTarget
; } }
217
if (
_firstTarget
== null && _lastTarget == null)
223
Debug.Assert(
_firstTarget
!= null && _lastTarget != null, "Both first and last node must either be null or non-null.");
225
Debug.Assert(
_firstTarget
.Previous == null, "The first node must not have a predecessor.");
237
node.Next =
_firstTarget
;
238
_firstTarget
.Previous = node;
243
Debug.Assert(
_firstTarget
!= null && _lastTarget != null, "Both first and last node must be non-null after AddToList.");
251
Debug.Assert(
_firstTarget
!= null && _lastTarget != null, "Both first and last node must be non-null before RemoveFromList.");
270
if (
_firstTarget
== node) _firstTarget = next;
273
Debug.Assert((
_firstTarget
!= null) == (_lastTarget != null), "Both first and last node must either be null or non-null after RemoveFromList.");
286
for (LinkedTargetInfo? node =
_firstTarget
; node != null; node = node.Next)