28 references to Key
System.Private.Xml (28)
System\Xml\Serialization\Compilation.cs (17)
115
method.methodKey = xmlMappings[i].
Key
;
122
_methods.Add(xmlMappings[i].
Key
!, method);
419
if (serializers[xmlMappings[i].
Key
!] == null)
421
serializers[xmlMappings[i].
Key
!] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass);
516
if (!serializers.ContainsKey(xmlMappings[i].
Key
!))
518
serializers[xmlMappings[i].
Key
!] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass);
558
TempMethod method = _methods![mapping.
Key
!];
612
encodingStyle = ValidateEncodingStyle(encodingStyle, mapping.
Key
!);
615
if (_methods![mapping.
Key
!].readMethod == null)
618
string? methodName = (string?)_readerMethods[mapping.
Key
!];
623
_methods[mapping.
Key
!].readMethod = GetMethodFromType(reader.GetType(), methodName);
625
return _methods[mapping.
Key
!].readMethod!.Invoke(reader, Array.Empty<object>());
639
encodingStyle = ValidateEncodingStyle(encodingStyle, mapping.
Key
!);
642
if (_methods![mapping.
Key
!].writeMethod == null)
645
string? methodName = (string?)_writerMethods[mapping.
Key
!];
650
_methods[mapping.
Key
!].writeMethod = GetMethodFromType(writer.GetType(), methodName);
652
_methods[mapping.
Key
!].writeMethod!.Invoke(writer, new object?[] { o });
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
158
WriteQuotedCSharpString(xmlMappings[i].
Key
);
358
_writer.Write((string?)serializers[xmlMappings[i].
Key
!]);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
221
ilg.Ldstr(GetCSharpString(xmlMappings[i].
Key
));
460
ConstructorInfo ctor = CreatedTypes[(string)serializers[xmlMappings[i].
Key
!]].GetConstructor(
System\Xml\Serialization\XmlSerializer.cs (7)
623
serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].
Key
!]!;
641
serializers[i] = contract!.TypedSerializers[mappings[i].
Key
!] as XmlSerializer;
741
serializers[index] = (XmlSerializer)contract.TypedSerializers[mappingKey.Mapping.
Key
!]!;
1035
if (this.Mapping.
Key
!= other.Mapping.
Key
)
1054
if (this.Mapping.
Key
!= null)
1055
hashCode ^= this.Mapping.
Key
.GetHashCode();