18 writes to Any
System.Private.Xml (18)
System\Xml\Serialization\Mappings.cs (1)
179newAccessor.Any = this.Any;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1243element.Any = false;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1612attribute.Any = (a.XmlAnyAttribute != null); 1702element.Any = true; 1790attribute.Any = a.XmlAnyAttribute != null; 1829element.Any = true; 1944element.Any = true; 2246element.Any = true; 2268element.Any = true;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1126any.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)
3196element.Any = false;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1306element.Any = false;
76 references to Any
System.Private.Xml (76)
System\Xml\Serialization\Compilation.cs (1)
554if (mapping.Accessor.Any)
System\Xml\Serialization\Mappings.cs (2)
133if (Any) 179newAccessor.Any = this.Any;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (10)
181if (mapping.Attribute != null && mapping.Attribute.Any) 203if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 465WriteMemberElements(new Member[] { member }, elementElseAction, elseAction, element.Any ? member : null, null); 828if (element.Any && element.Name.Length == 0) 958value = ReadXmlDocument(!element.Any); 962value = ReadXmlNode(!element.Any); 984bool isWrappedAny = !element.Any && IsWildcard(sm); 1608if (mapping.Attribute.Any) 1619if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1851if (attribute.Any) continue;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
205if (element.Any) 319string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 434WriteSerializable((IXmlSerializable)o!, name, ns, element.IsNullable, !element.Any); 441WriteElementLiteral(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) 1997if (element.Any && element.Name.Length == 0) 2024if (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); 699else if (accessor.Any) 803if (accessor.Any && accessor.Name.Length == 0) 845ExportElementMapping(element, (TypeMapping)accessor.Mapping!, accessor.Namespace, accessor.Any); 1119if (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)
2534if (mapping.Attribute != null && mapping.Attribute.Any) 2545if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 2803WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null, null); 3326if (mapping.Attribute != null && mapping.Attribute.Any) 3333if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 3695if (attribute.Any) continue; 3993if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 4159if (element.Any && element.Name.Length == 0) 4212if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue; 4263if (isSequence && e.Any && e.AnyNamespaces == null) 4813Writer.Write(element.Any ? "false" : "true"); 4844bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
461if (mapping.Attribute != null && mapping.Attribute.Any) 472if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 663WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null); 1550if (mapping.Attribute != null && mapping.Attribute.Any) 1557if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1834if (attribute.Any) continue; 2216if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 2427if (element.Any && element.Name.Length == 0) 2475if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue; 2516if (isSequence && e.Any && e.AnyNamespaces == null) 3186ilg.Ldc(element.Any ? false : true); 3222bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationWriter.cs (10)
3648if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue) 3672if (element.Any) 3711WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 3729WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 3913string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 3926WriteElement(e.Any ? source : castedSource, e, arrayName, writeAccessor); 4140WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 4155WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any); 4453if (element.Any && element.Name.Length == 0) 4483if (element.Any && element.Name.Length == 0)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
1570if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.IsOptionalValue) 1594if (element.Any) 1634WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 1645WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 1899string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 1922WriteElement(e.Any ? source : castedSource, e, arrayName, writeAccessor); 2022WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 2041WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any); 2248if (element.Any && element.Name.Length == 0) 2274if (element.Any && element.Name.Length == 0)