31 references to Key
System.Xml (31)
System\Xml\Serialization\Compilation.cs (17)
130
method.methodKey = xmlMappings[i].
Key
;
136
methods.Add(xmlMappings[i].
Key
, method);
399
if (serializers[xmlMappings[i].
Key
] == null) {
400
serializers[xmlMappings[i].
Key
] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass);
502
if (serializers[xmlMappings[i].
Key
] == null) {
503
serializers[xmlMappings[i].
Key
] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass);
545
TempMethod method = methods[mapping.
Key
];
579
encodingStyle = ValidateEncodingStyle(encodingStyle, mapping.
Key
);
582
if (methods[mapping.
Key
].readMethod == null) {
586
string methodName = (string)readerMethods[mapping.
Key
];
590
methods[mapping.
Key
].readMethod = GetMethodFromType(reader.GetType(), methodName, pregeneratedAssmbly ? this.assembly : null);
592
return methods[mapping.
Key
].readMethod.Invoke(reader, emptyObjectArray);
606
encodingStyle = ValidateEncodingStyle(encodingStyle, mapping.
Key
);
609
if (methods[mapping.
Key
].writeMethod == null) {
613
string methodName = (string)writerMethods[mapping.
Key
];
617
methods[mapping.
Key
].writeMethod = GetMethodFromType(writer.GetType(), methodName, pregeneratedAssmbly ? assembly : null);
619
methods[mapping.
Key
].writeMethod.Invoke(writer, new object[] { o });
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
171
WriteQuotedCSharpString(xmlMappings[i].
Key
);
357
writer.Write((string)serializers[xmlMappings[i].
Key
]);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
202
ilg.Ldstr(xmlMappings[i].
Key
);
442
ConstructorInfo ctor = CreatedTypes[(string)serializers[xmlMappings[i].
Key
]].GetConstructor(
System\Xml\Serialization\XmlSerializer.cs (8)
488
serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].
Key
];
503
serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].
Key
];
542
serializers[index] = (XmlSerializer)contract.TypedSerializers[mappingKey.Mapping.
Key
];
568
serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].
Key
];
889
if (this.Mapping.
Key
!= other.Mapping.
Key
)
907
if (this.Mapping.
Key
!= null)
908
hashCode ^= this.Mapping.
Key
.GetHashCode();
System\Xml\Serialization\XmlSerializerFactory.cs (2)
70
return (XmlSerializer)tempAssembly.Contract.TypedSerializers[xmlTypeMapping.
Key
];
140
return (XmlSerializer)tempAssembly.Contract.TypedSerializers[mapping.
Key
];