2 writes to _links
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
617if (_links != null || Interlocked.CompareExchange(ref _links, new DiagLinkedList<ActivityLink>(link), null) != null) 1195activity._links = new DiagLinkedList<ActivityLink>(enumerator);
4 references to _links
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
365get => _links ?? s_emptyLinks; 425public Enumerator<ActivityLink> EnumerateLinks() => new Enumerator<ActivityLink>(_links?.First); 617if (_links != null || Interlocked.CompareExchange(ref _links, new DiagLinkedList<ActivityLink>(link), null) != null) 619_links.Add(link);