2 instantiations of KeyValue
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1606
public KeyValue<object, object?> Current => new
KeyValue
<object, object?>(_enumerator.Key, _enumerator.Value);
1640
return new
KeyValue
<K, V>(current.Key, current.Value);
12 references to KeyValue
System.Private.DataContractSerialization (12)
System\Runtime\Serialization\AccessorBuilder.cs (2)
49
if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(
KeyValue
<,>))
106
if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(
KeyValue
<,>))
System\Runtime\Serialization\CollectionDataContract.cs (5)
1081
itemType = typeof(
KeyValue
<object, object>);
1587
internal sealed class DictionaryEnumerator : IEnumerator<
KeyValue
<object, object?>>
1606
public
KeyValue
<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value);
1616
internal sealed class GenericDictionaryEnumerator<K, V> : IEnumerator<
KeyValue
<K, V>>
1635
public
KeyValue
<K, V> Current
System\Runtime\Serialization\Globals.cs (1)
282
s_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)
517
return ((
KeyValue
<K, V>)o).Key;
522
return ((
KeyValue
<K, V>)o).Value;