4 writes to _lastTarget
System.Threading.Tasks.Dataflow (4)
Internal\TargetRegistry.cs (4)
182
_firstTarget =
_lastTarget
= null;
219
_firstTarget =
_lastTarget
= node;
232
_lastTarget
= node;
271
if (_lastTarget == node)
_lastTarget
= previous;
9 references to _lastTarget
System.Threading.Tasks.Dataflow (9)
Internal\TargetRegistry.cs (9)
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.");
224
Debug.Assert(
_lastTarget
.Next == null, "The last node must not have a successor.");
230
node.Previous =
_lastTarget
;
231
_lastTarget
.Next = 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.");
271
if (
_lastTarget
== node) _lastTarget = previous;
273
Debug.Assert((_firstTarget != null) == (
_lastTarget
!= null), "Both first and last node must either be null or non-null after RemoveFromList.");