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