17 writes to Any
System.Xml (17)
System\Xml\Serialization\Mappings.cs (1)
152newAccessor.Any = this.Any;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1393attribute.Any = (a.XmlAnyAttribute != null); 1474element.Any = true; 1554attribute.Any = a.XmlAnyAttribute != null; 1587element.Any = true; 1689element.Any = true; 1940element.Any = true; 1957element.Any = true;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
993any.Any = true;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
142accessor.Any = true; 202accessor.Any = true; 326accessor.Any = true; 1147accessor.Any = true; 1159anyAccessor.Any = true; 1395accessor.Any = true;
System\Xml\Serialization\XmlSerializationReader.cs (1)
2990element.Any = false;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1337element.Any = false;
66 references to Any
System.Xml (66)
System\Xml\Serialization\Compilation.cs (1)
542if (mapping.Accessor.Any) {
System\Xml\Serialization\Mappings.cs (2)
113if (Any) { 152newAccessor.Any = this.Any;
System\Xml\Serialization\XmlCodeExporter.cs (4)
69if (xmlTypeMapping.Accessor.Any) throw new InvalidOperationException(Res.GetString(Res.XmlIllegalWildcard)); 620if (attribute.Any) 656if (element.Any) 684if (element.Any)
System\Xml\Serialization\XmlMemberMapping.cs (1)
34get { return Accessor.Any; }
System\Xml\Serialization\XmlReflectionImporter.cs (3)
278if (accessor.Any && accessor.Name.Length == 0) 1737if (element.Any && element.Name.Length == 0) { 1759if (element.Any && element.Name.Length == 0) {
System\Xml\Serialization\XmlSchemaExporter.cs (7)
106ExportMapping(member.Elements[0].Mapping, member.Elements[0].Namespace, member.Elements[0].Any); 231if (accessor.Any && accessor.Name.Length == 0) 241ExportElementMapping(element, accessor.Mapping, accessor.Namespace, accessor.Any); 635else if (accessor.Any) { 720if (accessor.Any && accessor.Name.Length == 0) { 756ExportElementMapping(element, (TypeMapping)accessor.Mapping, accessor.Namespace, accessor.Any); 987if (members[i].Attribute.Any)
System\Xml\Serialization\XmlSchemaImporter.cs (2)
195if (mapping.Members.Length != 1 || !mapping.Members[0].Accessor.Any) 1226if (itemAccessor.Any)
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
269if (mapping.Accessor.Any) {
System\Xml\Serialization\XmlSerializationILGen.cs (1)
316if (mapping.Accessor.Any) {
System\Xml\Serialization\XmlSerializationReader.cs (12)
2385if (mapping.Attribute != null && mapping.Attribute.Any) 2394if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) { 2632WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null, null); 3108if (mapping.Attribute != null && mapping.Attribute.Any) 3113if (mapping.Elements[j].Any && (mapping.Elements[j].Name == null || mapping.Elements[j].Name.Length == 0)) { 3447if (attribute.Any) continue; 3715if (e.Any && (e.Name == null || e.Name.Length == 0)) continue; 3862if (element.Any && element.Name.Length == 0) { 3907if (!isSequence && e.Any && (e.Name == null || e.Name.Length == 0)) continue; 3940if (isSequence && e.Any && e.AnyNamespaces == null) { 4416Writer.Write(element.Any ? "false" : "true"); 4439bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
476if (mapping.Attribute != null && mapping.Attribute.Any) 485if (mapping.Elements[j].Any && mapping.Elements[j].Name.Length == 0) { 681WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.Any ? members[0] : null, null); 1582if (mapping.Attribute != null && mapping.Attribute.Any) 1587if (mapping.Elements[j].Any && (mapping.Elements[j].Name == null || mapping.Elements[j].Name.Length == 0)) { 1876if (attribute.Any) continue; 2265if (e.Any && (e.Name == null || e.Name.Length == 0)) continue; 2486if (element.Any && element.Name.Length == 0) { 2526if (!isSequence && e.Any && (e.Name == null || e.Name.Length == 0)) continue; 2564if (isSequence && e.Any && e.AnyNamespaces == null) { 3216ilg.Ldc(element.Any ? false : true); 3253bool isWrappedAny = !element.Any && IsWildcard(sm);
System\Xml\Serialization\XmlSerializationWriter.cs (10)
2513if (!elements[0].Any && !elements[0].Mapping.TypeDesc.UseReflection && !elements[0].Mapping.TypeDesc.IsOptionalValue) 2534if (element.Any) { 2566WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 2583WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 2748string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 2760WriteElement(e.Any ? source : castedSource, e, arrayName, writeAccessor); 2955WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 2969WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any); 3195if (element.Any && element.Name.Length == 0) { 3220if (element.Any && element.Name.Length == 0) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
1522if (!elements[0].Any && !elements[0].Mapping.TypeDesc.IsOptionalValue) 1543if (element.Any) { 1578WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 1590WriteElement(element.Any ? source : castedSource, element, arrayName, writeAccessors); 1847string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 1870WriteElement(e.Any ? source : castedSource, e, arrayName, writeAccessor); 1960WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.Any); 1978WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.Any); 2178if (element.Any && element.Name.Length == 0) { 2199if (element.Any && element.Name.Length == 0) {