System\Xml\Serialization\XmlSerializationReaderILGen.cs (61)
499if (members.Length > 0 && members[0].Mapping.IsReturnValue)
1823if (member.Mapping.Xmlns != null)
1828if (member.Mapping.Ignore)
1831AttributeAccessor? attribute = member.Mapping.Attribute;
1899ConstructorInfo ctor = xmlnsMember.Mapping.TypeDesc!.Type!.GetConstructor(
1904WriteSourceEnd(xmlnsMember.Source, xmlnsMember.Mapping.TypeDesc.Type!);
1909MethodInfo Add = xmlnsMember.Mapping.TypeDesc.Type!.GetMethod(
1919ILGenLoad(xmlnsMember.ArraySource, xmlnsMember.Mapping.TypeDesc.Type);
2033AttributeAccessor attribute = member.Mapping.Attribute!;
2041WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc!.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc!.Type! : member.Mapping.TypeDesc.Type!);
2059WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc!.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc!.Type! : member.Mapping.TypeDesc.Type!);
2097string attributeSource = GetArraySource(member.Mapping.TypeDesc!, member.ArrayName);
2101WriteSourceEnd(attributeSource, member.Mapping.TypeDesc!.ArrayElementTypeDesc!.Type!);
2108WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc!.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc!.Type! : member.Mapping.TypeDesc.Type!);
2111if (member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite && member.CheckSpecifiedSource != null && member.CheckSpecifiedSource.Length > 0)
2132TypeDesc typeDesc = member.Mapping.TypeDesc!;
2134if (member.Mapping.TypeDesc!.IsArray)
2141if (member.Mapping.ChoiceIdentifier != null)
2143WriteArrayLocalDecl($"{member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.CSharpName}[]",
2145member.Mapping.ChoiceIdentifier.Mapping.TypeDesc);
2161if (member.IsList && !member.Mapping.ReadOnly) //&& member.Mapping.TypeDesc.IsNullable) // nullable or not, we are likely to assign null in the next step if we don't do this initialization. So just do this.
2167if (!member.Mapping.TypeDesc.HasDefaultConstructor)
2175ilg.Ldstr(GetCSharpString(member.Mapping.TypeDesc.CSharpName));
2182ReflectionAwareILGen.ILGenForCreateInstance(ilg, member.Mapping.TypeDesc.Type!, typeDesc.CannotNew, true);
2183WriteSourceEnd(member.Source, member.Mapping.TypeDesc.Type!);
2187WriteLocalDecl(a, new SourceInfo(member.Source, member.Source, member.Mapping.MemberInfo, member.Mapping.TypeDesc.Type, ilg));
2203if (member.Mapping.Xmlns != null)
2205if (member.Mapping.Ignore)
2207if (member.Mapping.IsText || member.Mapping.IsAttribute)
2210ElementAccessor[] elements = member.Mapping.Elements!;
2315TextAccessor text = member.Mapping.Text!;
2423ElementAccessor[] elements = anyElement.Mapping.Elements!;
2429WriteElement(anyElement.ArraySource, anyElement.ArrayName, anyElement.ChoiceArraySource, element, anyElement.Mapping.ChoiceIdentifier, anyElement.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? anyElement.CheckSpecifiedSource : null, false, false, -1, i);
2444if (members[i].Mapping.IsParticle && members[i].Mapping.IsSequence)
2460if (member.Mapping.Xmlns != null)
2462if (member.Mapping.Ignore)
2464if (isSequence && (member.Mapping.IsText || member.Mapping.IsAttribute))
2468ChoiceIdentifierAccessor? choice = member.Mapping.ChoiceIdentifier;
2469ElementAccessor[] elements = member.Mapping.Elements!;
2505if (member.Mapping.IsReturnValue)
2524if (member.Mapping.IsReturnValue)
2533WriteElement(member.ArraySource, member.ArrayName, member.ChoiceArraySource, e, choice, member.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite ? member.CheckSpecifiedSource : null, member.IsList && member.Mapping.TypeDesc!.IsNullable, member.Mapping.ReadOnly, member.FixupIndex, j);
2534if (member.Mapping.IsReturnValue)
2625TypeDesc typeDesc = member.Mapping.TypeDesc!;
2650if (member.Mapping.ChoiceIdentifier != null)
2659ilg.Ldc(member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.Type!);
2662ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType());
2663WriteSourceEnd(member.ChoiceSource!, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType());