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