2 instantiations of KeyValue
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1610public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value); 1644return new KeyValue<K, V>(current.Key, current.Value);
21 references to KeyValue
System.Private.DataContractSerialization (21)
System\Runtime\Serialization\AccessorBuilder.cs (2)
49if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(KeyValue<,>)) 106if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\CollectionDataContract.cs (9)
1066itemType = typeof(KeyValue<,>).MakeGenericType(genericArgs); 1084itemType = typeof(KeyValue<object, object>); 1214itemType = isOpenGeneric ? typeof(KeyValue<,>) : typeof(KeyValue<,>).MakeGenericType(addMethodTypeArray); 1218itemType = typeof(KeyValue<,>).MakeGenericType(addMethodTypeArray); 1591internal sealed class DictionaryEnumerator : IEnumerator<KeyValue<object, object?>> 1610public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value); 1620internal sealed class GenericDictionaryEnumerator<K, V> : IEnumerator<KeyValue<K, V>> 1639public KeyValue<K, V> Current
System\Runtime\Serialization\DataContract.cs (1)
2051collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
573if (itemType.IsGenericType && (itemType.GetGenericTypeDefinition() == typeof(KeyValue<,>)))
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
296&& collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
438Type genericDictionaryKeyValueType = typeof(KeyValue<,>).MakeGenericType(keyValueTypes);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
361(oldItemContract.UnderlyingType.GetGenericTypeDefinition() == typeof(KeyValue<,>))) 414&& collectionContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\ReflectionReader.cs (2)
517return ((KeyValue<K, V>)o).Key; 522return ((KeyValue<K, V>)o).Value;
System\Runtime\Serialization\SchemaImporter.cs (2)
1122GenericInfo genericInfo = new GenericInfo(DataContract.GetXmlName(typeof(KeyValue<,>)), typeof(KeyValue<,>).FullName);