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