2 instantiations of KeyValue
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1606public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value); 1640return new KeyValue<K, V>(current.Key, current.Value);
12 references to KeyValue
System.Private.DataContractSerialization (12)
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 (5)
1081itemType = typeof(KeyValue<object, object>); 1587internal sealed class DictionaryEnumerator : IEnumerator<KeyValue<object, object?>> 1606public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value); 1616internal sealed class GenericDictionaryEnumerator<K, V> : IEnumerator<KeyValue<K, V>> 1635public KeyValue<K, V> Current
System\Runtime\Serialization\Globals.cs (1)
282s_typeOfKeyValue ??= typeof(KeyValue<,>);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
296&& collectionDataContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
413&& collectionContract.ItemType.GetGenericTypeDefinition() == typeof(KeyValue<,>))
System\Runtime\Serialization\ReflectionReader.cs (2)
517return ((KeyValue<K, V>)o).Key; 522return ((KeyValue<K, V>)o).Value;