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)
1253
element.
Any
= false;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1617
attribute.
Any
= (a.XmlAnyAttribute != null);
1707
element.
Any
= true;
1795
attribute.
Any
= a.XmlAnyAttribute != null;
1834
element.
Any
= true;
1949
element.
Any
= true;
2281
element.
Any
= true;
2303
element.
Any
= true;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1121
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)
3222
element.
Any
= false;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1305
element.
Any
= false;
78 references to Any
System.Private.Xml (78)
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)
968
value = ReadXmlDocument(!element.
Any
);
972
value = ReadXmlNode(!element.
Any
);
994
bool isWrappedAny = !element.
Any
&& IsWildcard(sm);
1618
if (mapping.Attribute.
Any
)
1629
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
1913
if (attribute.
Any
) continue;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (6)
209
if (element.
Any
)
308
if (element.
Any
&& element.Name.Length == 0)
339
if (element.
Any
&& element.Name.Length == 0)
394
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty);
509
WriteSerializable((IXmlSerializable)o!, name, ns, element.IsNullable, !element.
Any
);
516
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)
2002
if (element.
Any
&& element.Name.Length == 0)
2029
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
);
695
else if (accessor.
Any
)
799
if (accessor.
Any
&& accessor.Name.Length == 0)
841
ExportElementMapping(element, (TypeMapping)accessor.Mapping!, accessor.Namespace, accessor.
Any
);
1114
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)
2560
if (mapping.Attribute != null && mapping.Attribute.
Any
)
2571
if (mapping.Elements[j].
Any
&& mapping.Elements[j].Name.Length == 0)
2829
WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.
Any
? members[0] : null, null, null);
3352
if (mapping.Attribute != null && mapping.Attribute.
Any
)
3359
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
3721
if (attribute.
Any
) continue;
4019
if (e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
4185
if (element.
Any
&& element.Name.Length == 0)
4238
if (!isSequence && e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
4289
if (isSequence && e.
Any
&& e.AnyNamespaces == null)
4848
Writer.Write(element.
Any
? "false" : "true");
4879
bool isWrappedAny = !element.
Any
&& IsWildcard(sm);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
460
if (mapping.Attribute != null && mapping.Attribute.
Any
)
471
if (mapping.Elements[j].
Any
&& mapping.Elements[j].Name.Length == 0)
662
WriteMemberElements(members, "throw CreateUnknownNodeException();", unknownNode, element.
Any
? members[0] : null, null);
1549
if (mapping.Attribute != null && mapping.Attribute.
Any
)
1556
if (mapping.Elements[j].
Any
&& string.IsNullOrEmpty(mapping.Elements[j].Name))
1833
if (attribute.
Any
) continue;
2215
if (e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
2426
if (element.
Any
&& element.Name.Length == 0)
2474
if (!isSequence && e.
Any
&& string.IsNullOrEmpty(e.Name)) continue;
2515
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)
3695
if (!elements[0].
Any
&& !elements[0].Mapping!.TypeDesc!.UseReflection && !elements[0].Mapping!.TypeDesc!.IsOptionalValue)
3719
if (element.
Any
)
3758
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
3776
WriteElement(element.
Any
? source : castedSource, element, arrayName, writeAccessors);
3960
string? ns = element.
Any
&& element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : "");
3973
WriteElement(e.
Any
? source : castedSource, e, arrayName, writeAccessor);
4187
WriteElementCall("WriteSerializable", typeof(IXmlSerializable), source, name, ns, element.IsNullable, !element.
Any
);
4202
WriteElementCall("WriteElementLiteral", typeof(XmlNode), source, name, ns, element.IsNullable, element.
Any
);
4520
if (element.
Any
&& element.Name.Length == 0)
4550
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)