7 writes to annotations
System.Private.Xml.Linq (7)
System\Xml\Linq\XObject.cs (7)
86annotations = annotation is object[]? new object[] { annotation } : annotation; 93annotations = new object[] { annotations, annotation }; 102annotations = a; 268if (XHelper.IsInstanceOfType(annotations, type)) annotations = null; 282annotations = null; 303if (annotations is T) annotations = null; 317annotations = null;
33 references to annotations
System.Private.Xml.Linq (33)
System\Xml\Linq\XElement.cs (1)
1882if (parent != null || annotations != null || content != null || lastAttr != null) throw new InvalidOperationException(SR.InvalidOperation_DeserializeInstance);
System\Xml\Linq\XObject.cs (32)
31while (o != null && o.annotations == null) 84if (annotations == null) 90object?[]? a = annotations as object[]; 93annotations = new object[] { annotations, annotation }; 122if (annotations != null) 124object?[]? a = annotations as object[]; 127if (XHelper.IsInstanceOfType(annotations, type)) return annotations; 146if (annotations != null) 148object?[]? a = annotations as object[]; 151if (annotations.GetType() == type) return annotations; 177if (annotations != null) 179object?[]? a = annotations as object[]; 180if (a == null) return annotations as T; 207if (annotations != null) 209object?[]? a = annotations as object[]; 212if (XHelper.IsInstanceOfType(annotations, type)) yield return annotations; 234if (annotations != null) 236object?[]? a = annotations as object[]; 239T? result = annotations as T; 263if (annotations != null) 265object?[]? a = annotations as object[]; 268if (XHelper.IsInstanceOfType(annotations, type)) annotations = null; 298if (annotations != null) 300object?[]? a = annotations as object[]; 303if (annotations is T) annotations = null; 424while (o != null && o.annotations == null) 446while (o != null && o.annotations == null) 477while (o != null && o.annotations == null) 497while (o != null && o.annotations == null)