18 writes to Any
System.Private.Xml (18)
System\Xml\Serialization\Mappings.cs (1)
179
newAccessor.
Any
= this.Any;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1350
element.
Any
= false;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1618
attribute.
Any
= (a.XmlAnyAttribute != null);
1722
element.
Any
= true;
1810
attribute.
Any
= a.XmlAnyAttribute != null;
1849
element.
Any
= true;
1964
element.
Any
= true;
2296
element.
Any
= true;
2318
element.
Any
= true;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1121
any.
Any
= true;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
105
accessor.
Any
= true;
170
accessor.
Any
= true;
311
accessor.
Any
= true;
1221
accessor.
Any
= true;
1234
anyAccessor.
Any
= true;
1495
accessor.
Any
= true;
System\Xml\Serialization\XmlSerializationReader.cs (1)
3260
element.
Any
= false;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1382
element.
Any
= false;
80 references to Any
System.Private.Xml (80)
System\Xml\Serialization\Compilation.cs (1)
601
if (mapping.Accessor.
Any
)
System\Xml\Serialization\Mappings.cs (2)
133
if (
Any
)
179
newAccessor.Any = this.
Any
;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (11)
188
if (mapping.Attribute != null && mapping.Attribute.
Any
)
210
if (mapping.Elements[j].
Any
&& mapping.Elements[j].Name.Length == 0)
473
WriteMemberElements(new Member[] { member }, elementElseAction, elseAction, element.
Any
? member : null, null);
819
else if ((isSequence && ele.
Any
&& ele.AnyNamespaces == null) || (ele.Name == Reader.LocalName && ns == Reader.NamespaceURI))
885
if (element.
Any
&& element.Name.Length == 0)
1030
value = ReadXmlDocument(!element.
Any
);
1034
value = ReadXmlNode(!element.
Any
);
1040
bool isWrappedAny = !element.
Any
&& IsWildcard(sm);
1713
if (mapping.Attribute.
Any
)
1724
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
2037
if (attribute.
Any
) continue;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (7)
290
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty);
367
if (element.
Any
)
466
if (element.
Any
&& element.Name.Length == 0)
497
if (element.
Any
&& element.Name.Length == 0)
552
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty);
667
WriteSerializable((IXmlSerializable)o!, name, ns, element.IsNullable, !element.
Any
);
674
WriteElementLiteral(node, name, ns, element.IsNullable, element.
Any
);
System\Xml\Serialization\XmlMemberMapping.cs (1)
31
get { return Accessor!.
Any
; }
System\Xml\Serialization\XmlReflectionImporter.cs (3)
314
if (accessor.
Any
&& accessor.Name.Length == 0)
2017
if (element.
Any
&& element.Name.Length == 0)
2044
if (element.
Any
&& element.Name.Length == 0)
System\Xml\Serialization\XmlSchemaExporter.cs (7)
94
ExportMapping(member.Elements[0].Mapping!, member.Elements[0].Namespace, member.Elements[0].
Any
);
235
if (accessor.
Any
&& accessor.Name.Length == 0)
245
ExportElementMapping(element, accessor.Mapping, accessor.Namespace, accessor.
Any
);
695
else if (accessor.
Any
)
799
if (accessor.
Any
&& accessor.Name.Length == 0)
841
ExportElementMapping(element, (TypeMapping)accessor.Mapping!, accessor.Namespace, accessor.
Any
);
1114
if (members[i].Attribute!.
Any
)
System\Xml\Serialization\XmlSchemaImporter.cs (2)
163
if (mapping.Members!.Length != 1 || !mapping.Members[0].Accessor!.
Any
)
1309
if (itemAccessor.
Any
)
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
260
if (mapping.Accessor.
Any
)
System\Xml\Serialization\XmlSerializationILGen.cs (1)
334
if (mapping.Accessor.
Any
)
System\Xml\Serialization\XmlSerializationReader.cs (12)
2598
if (mapping.Attribute != null && mapping.Attribute.
Any
)
2609
if (mapping.Elements[j].
Any
&& mapping.Elements[j].Name.Length == 0)
2867
WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.
Any
? members[0] : null, null, null);
3390
if (mapping.Attribute != null && mapping.Attribute.
Any
)
3397
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
3759
if (attribute.
Any
) continue;
4064
if (e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
4254
if (element.
Any
&& element.Name.Length == 0)
4307
if (!isSequence && e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
4358
if (isSequence && e.
Any
&& e.AnyNamespaces == null)
4952
Writer.Write(element.
Any
? "false" : "true");
4983
bool isWrappedAny = !element.
Any
&& IsWildcard(sm);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
537
if (mapping.Attribute != null && mapping.Attribute.
Any
)
548
if (mapping.Elements[j].
Any
&& mapping.Elements[j].Name.Length == 0)
739
WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.
Any
? members[0] : null, null);
1626
if (mapping.Attribute != null && mapping.Attribute.
Any
)
1633
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
1910
if (attribute.
Any
) continue;
2293
if (e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
2543
if (element.
Any
&& element.Name.Length == 0)
2591
if (!isSequence && e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
2632
if (isSequence && e.
Any
&& e.AnyNamespaces == null)
3397
ilg.Ldc(element.
Any
? false : true);
3433
bool isWrappedAny = !element.
Any
&& IsWildcard(sm);
System\Xml\Serialization\XmlSerializationWriter.cs (10)
3713
if (!elements[0].
Any
&& !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)
3737
if (element.
Any
)
3776
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
3794
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
3978
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : "");
3991
WriteElement(e.
Any
? source : castedSource, e, arrayName, writeAccessor);
4205
WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.
Any
);
4220
WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.
Any
);
4538
if (element.
Any
&& element.Name.Length == 0)
4568
if (element.
Any
&& element.Name.Length == 0)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
1613
if (!elements[0].
Any
&& !elements[0].Mapping!.TypeDesc!.IsOptionalValue)
1637
if (element.
Any
)
1677
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
1688
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
1942
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : "");
1965
WriteElement(e.
Any
? source : castedSource, e, arrayName, writeAccessor);
2065
WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.
Any
);
2084
WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.
Any
);
2291
if (element.
Any
&& element.Name.Length == 0)
2317
if (element.
Any
&& element.Name.Length == 0)