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