23 writes to content
System.Private.Xml.Linq (23)
System\Xml\Linq\XContainer.cs (18)
34this.content = other.content; 78Interlocked.CompareExchange<object>(ref content, t, s); 391content = null; 396content = null; 412content = null; 560content = s; 565content = s; 589content = s; 596content = stringContent + s; 634content = n; 740content = t; 922_currentContainer.content ??= string.Empty; 978_currentContainer.content ??= string.Empty; 1055_currentContainer.content ??= string.Empty; 1171_currentContainer.content ??= string.Empty; 1252content = null; 1256if (content == n) content = p; 1277content = null;
System\Xml\Linq\XLinq.cs (5)
35_parent.content = _text; 51_parent.content = _text; 56_parent.content = _text; 162_parent.content = n; 174if (_parent.content == _previous) _parent.content = n;
113 references to content
System.Private.Xml.Linq (113)
System\Xml\Linq\Extensions.cs (7)
143} while (n.parent == root && n != root.content); 394while (n != null && n != root && n == n.parent!.content) n = n.parent; 419if (c != null && c.content is XNode) 421n = ((XNode)c.content).next; 425while (n != null && n != root && n == n.parent!.content) n = n.parent; 443XNode? n = root.content as XNode; 451} while (n.parent == root && n != root.content);
System\Xml\Linq\XContainer.cs (62)
32if (other.content is string) 34this.content = other.content; 38XNode? n = (XNode?)other.content; 45} while (n != other.content); 68if (content == null) return null; 69XNode? n = content as XNode; 71string? s = content as string; 80return (XNode)content; 296XNode? n = content as XNode; 304} while (n != content); 358} while (n.parent == this && n != content); 374while (content != null) 376string? s = content as string; 390if ((object)s != (object)content) throw new InvalidOperationException(SR.InvalidOperation_ExternalCode); 400XNode? last = content as XNode; 405if (last != content || n != last.next) throw new InvalidOperationException(SR.InvalidOperation_ExternalCode); 546if (content == null) 559if (content != null) throw new InvalidOperationException(SR.InvalidOperation_ExternalCode); 572XText? tn = content as XText; 587if (content == null) 593string? stringContent = content as string; 600XText? tn = content as XText; 624if (content == null || content is string) 630XNode x = (XNode)content; 639string? s = content as string; 646XNode? n = (XNode?)content; 653} while (n != content); 660if (content == null) return null; 661string? s = content as string; 664XNode n = (XNode)content; 670} while (n != content); 681n = n != content ? n.next : null; 688if (content == e.content) return true; 691XNode? n1 = content as XNode; 692XNode? n2 = e.content as XNode; 702n1 = n1 != content ? n1.next : null; 703n2 = n2 != e.content ? n2.next : null; 714XNode? n = content as XNode; 727} while (n != content); 734string? s = content as string; 758while (n != null && n != this && n == n.parent!.content) n = n.parent; 777if (c != null && c.content is XNode) 779n = ((XNode)c.content).next!; 783while (n != this && n == n.parent!.content) n = n.parent; 795XNode? n = content as XNode; 803} while (n.parent == this && n != content); 1247Debug.Assert(content != null); 1248XNode p = (XNode)content; 1256if (content == n) content = p; 1266XNode? n = content as XNode; 1275} while (n != content); 1292if (content != null) 1294string? stringContent = content as string; 1308XNode n = (XNode)content; 1313} while (n != content); 1320if (content != null) 1322string? stringContent = content as string; 1343XNode n = (XNode)content; 1348} while (n != content); 1369[return: NotNullIfNotNull(nameof(content))]
System\Xml\Linq\XDocument.cs (4)
883XNode? n = content as XNode; 891} while (n != content); 918XNode? n = content as XNode; 932} while (n != content);
System\Xml\Linq\XElement.cs (6)
235XNode? n = content as XNode; 242} while (n != content); 253get { return content == null; } 307if (content == null) return string.Empty; 308string? s = content as string; 1882if (parent != null || annotations != null || content != null || lastAttr != null) throw new InvalidOperationException(SR.InvalidOperation_DeserializeInstance);
System\Xml\Linq\XLinq.cs (14)
31if (_parent.content == null) 50if (_parent.content != null) throw new InvalidOperationException(SR.InvalidOperation_ExternalCode); 159if (_parent.content == null || _parent.content is string) 166XNode last = (XNode)_parent.content; 174if (_parent.content == _previous) _parent.content = n; 217if (current.content == null) 223string? s = current.content as string; 231n = ((XNode)current.content).next!; 240while (n != root && n == n.parent!.content) 261if (current.content == null) 267string? s = current.content as string; 276n = ((XNode)current.content).next!; 285while (n != root && n == n.parent!.content)
System\Xml\Linq\XNode.cs (12)
49return parent == null || this == parent.content ? null : next; 65Debug.Assert(parent.content != null); 66XNode n = ((XNode)parent.content!).next!; 154XNode? p = (XNode)parent.content!; 156if (p == parent.content) p = null; 273XNode n = (XNode)n1.parent!.content!; 313while (n.parent != null && n != n.parent.content) 331XNode n = (XNode)parent.content!; 544XNode? p = (XNode)parent.content!; 546if (p == parent.content) p = null; 643while (n.parent != null && n != n.parent.content) 655XNode n = (XNode)parent.content!;
System\Xml\Linq\XNodeReader.cs (5)
1186XNode? n = d.content as XNode; 1192string? s = d.content as string; 1207XNode? n = e.content as XNode; 1213string? s = e.content as string; 1259if (null == next || next == n || n == n.parent!.content)
System\Xml\Schema\XNodeValidator.cs (3)
324XNode? n = e.content as XNode; 349} while (n != e.content); 354string? s = e.content as string;