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)
1616attribute.Any = (a.XmlAnyAttribute != null); 1706element.Any = true; 1794attribute.Any = a.XmlAnyAttribute != null; 1833element.Any = true; 1948element.Any = true; 2280element.Any = true; 2302element.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)
3195element.Any = false;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1305element.Any = false;
78 references to Any
System.Private.Xml (78)
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)) 1903if (attribute.Any) continue;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (6)
209if (element.Any) 308if (element.Any && element.Name.Length == 0) 339if (element.Any && element.Name.Length == 0) 394string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 509WriteSerializable((IXmlSerializable)o!, name, ns, element.IsNullable, !element.Any); 516WriteElementLiteral(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) 2001if (element.Any && element.Name.Length == 0) 2028if (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)
2533if (mapping.Attribute != null && mapping.Attribute.Any) 2544if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 2802WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null, null); 3325if (mapping.Attribute != null && mapping.Attribute.Any) 3332if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 3694if (attribute.Any) continue; 3992if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 4158if (element.Any && element.Name.Length == 0) 4211if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue; 4262if (isSequence && e.Any && e.AnyNamespaces == null) 4812Writer.Write(element.Any ? "false" : "true"); 4843bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
460if (mapping.Attribute != null && mapping.Attribute.Any) 471if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 662WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null); 1549if (mapping.Attribute != null && mapping.Attribute.Any) 1556if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1833if (attribute.Any) continue; 2215if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 2426if (element.Any && element.Name.Length == 0) 2474if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue; 2515if (isSequence && e.Any && e.AnyNamespaces == null) 3185ilg.Ldc(element.Any ? false : true); 3221bool 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)