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