18 writes to Any
System.Private.Xml (18)
System\Xml\Serialization\Mappings.cs (1)
179newAccessor.Any = this.Any;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1253element.Any = false;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1617attribute.Any = (a.XmlAnyAttribute != null); 1707element.Any = true; 1795attribute.Any = a.XmlAnyAttribute != null; 1834element.Any = true; 1949element.Any = true; 2281element.Any = true; 2303element.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)
3222element.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) 968value = ReadXmlDocument(!element.Any); 972value = ReadXmlNode(!element.Any); 994bool isWrappedAny = !element.Any && IsWildcard(sm); 1618if (mapping.Attribute.Any) 1629if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1913if (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) 2002if (element.Any && element.Name.Length == 0) 2029if (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)
2560if (mapping.Attribute != null && mapping.Attribute.Any) 2571if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) 2829WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null, null); 3352if (mapping.Attribute != null && mapping.Attribute.Any) 3359if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 3721if (attribute.Any) continue; 4019if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 4185if (element.Any && element.Name.Length == 0) 4238if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue; 4289if (isSequence && e.Any && e.AnyNamespaces == null) 4848Writer.Write(element.Any ? "false" : "true"); 4879bool 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) 3186ilg.Ldc(element.Any ? false : true); 3222bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationWriter.cs (10)
3695if (!elements[0].Any && !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue) 3719if (element.Any) 3758WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 3776WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 3960string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 3973WriteElement(e.Any ? source : castedSource, e, arrayName, writeAccessor); 4187WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 4202WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any); 4520if (element.Any && element.Name.Length == 0) 4550if (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)