357 references to KeyValuePair
mscorlib (29)
system\Collections\Concurrent\ConcurrentDictionary.cs (3)
734array[index] = new KeyValuePair<TKey, TValue>(current.m_key, current.m_value); 770array[index] = new KeyValuePair<TKey, TValue>(current.m_key, current.m_value); 796yield return new KeyValuePair<TKey, TValue>(current.m_key, current.m_value);
system\collections\concurrent\PartitionerStatic.cs (7)
738= new KeyValuePair<long, TSource>(m_sharedIndex.Value, 823= new KeyValuePair<long, TSource>(m_sharedIndex.Value, 849= new KeyValuePair<long, TSource>(m_sharedIndex.Value, 1277return new KeyValuePair<long, TSource>(m_startIndex + m_localOffset.Value, 1361return new KeyValuePair<long, TSource>(m_startIndex + m_localOffset.Value, 1588return (new KeyValuePair<long, TSource>(m_offset, m_list[m_offset])); 1645return (new KeyValuePair<long, TSource>(m_offset, m_array[m_offset]));
system\collections\generic\dictionary.cs (4)
263array[index++] = new KeyValuePair<TKey,TValue>(entries[i].key, entries[i].value); 573objects[index++] = new KeyValuePair<TKey,TValue>(entries[i].key, entries[i].value); 725current = new KeyValuePair<TKey, TValue>(dictionary.entries[index].key, dictionary.entries[index].value); 753return new KeyValuePair<TKey, TValue>(current.Key, current.Value);
system\collections\objectmodel\readonlydictionary.cs (1)
271objects[index++] = new KeyValuePair<TKey, TValue>(item.Key, item.Value);
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (1)
100yield return new KeyValuePair<string, object>(this.m_names[i], this.m_values[i]);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (1)
198var ret = this.nameInfos.TryGet(new KeyValuePair<string, EventTags>(name, tags));
system\internal.cs (5)
131new KeyValuePair<Char, UInt16>('\0', UInt16.MinValue); 132new KeyValuePair<UInt16, Double>(UInt16.MinValue, Double.MinValue); 133new KeyValuePair<Object, Int32>(String.Empty, Int32.MinValue); 134new KeyValuePair<Int32, Int32>(Int32.MinValue, Int32.MinValue); 329mapToCollectionAdapter.Add<K, V>(new KeyValuePair<K, V>(default(K), default(V)));
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (3)
110kvArray[i++] = new KeyValuePair<TKey, TValue>(current.Key, current.Value); 191KeyValuePair<TKey, TValue> searchKey = new KeyValuePair<TKey, TValue>(key, default(TValue)); 198KeyValuePair<TKey, TValue> searchKey = new KeyValuePair<TKey, TValue>(key, default(TValue));
system\stubhelpers.cs (1)
1548return new KeyValuePair<K, V>(pair.Key, pair.Value);
system\threading\asynclocal.cs (3)
356_keyValues[index] = new KeyValuePair<IAsyncLocal, object>(key, value); 373multi._keyValues[i] = new KeyValuePair<IAsyncLocal, object>(key, value); 412multi._keyValues[_keyValues.Length] = new KeyValuePair<IAsyncLocal, object>(key, value);
PresentationCore (5)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (3)
164array[k++] = new KeyValuePair<int, CharacterMetrics>( 595return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value); 602return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (2)
2216array[arrayIndex + i] = new KeyValuePair<ushort, double>(i, this[i]); 2241yield return new KeyValuePair<ushort, double>(i, this[i]);
PresentationFramework (16)
src\Framework\MS\Internal\Helper.cs (1)
810KeyValuePair<int, object> keyValue = new KeyValuePair<int, object>(dpIndex, value);
src\Framework\MS\Internal\WeakDictionary.cs (1)
352yield return new KeyValuePair<TKey, TValue>(key, (TValue)_hashTable[obj]);
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
655_list.Add(new KeyValuePair<object, T>(item, value));
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (13)
91new HANDLE_MESSAGE(WM.SETTEXT, _HandleSetTextOrIcon), 92new HANDLE_MESSAGE(WM.SETICON, _HandleSetTextOrIcon), 93new HANDLE_MESSAGE(WM.NCACTIVATE, _HandleNCActivate), 94new HANDLE_MESSAGE(WM.NCCALCSIZE, _HandleNCCalcSize), 95new HANDLE_MESSAGE(WM.NCHITTEST, _HandleNCHitTest), 96new HANDLE_MESSAGE(WM.NCRBUTTONUP, _HandleNCRButtonUp), 97new HANDLE_MESSAGE(WM.SIZE, _HandleSize), 98new HANDLE_MESSAGE(WM.WINDOWPOSCHANGED, _HandleWindowPosChanged), 99new HANDLE_MESSAGE(WM.DWMCOMPOSITIONCHANGED, _HandleDwmCompositionChanged), 106new HANDLE_MESSAGE(WM.SETTINGCHANGE, _HandleSettingChange), 107new HANDLE_MESSAGE(WM.ENTERSIZEMOVE, _HandleEnterSizeMove), 108new HANDLE_MESSAGE(WM.EXITSIZEMOVE, _HandleExitSizeMove), 109new HANDLE_MESSAGE(WM.MOVE, _HandleMove),
System (19)
compmod\system\collections\generic\sorteddictionary.cs (9)
90TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue))); 102TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue))); 104_set.Add(new KeyValuePair<TKey, TValue>(key, value)); 106node.Item = new KeyValuePair<TKey, TValue>( node.Item.Key, value); 166_set.Add(new KeyValuePair<TKey, TValue>(key, value)); 178return _set.Contains(new KeyValuePair<TKey, TValue>(key, default(TValue))); 223return _set.Remove(new KeyValuePair<TKey, TValue>(key, default(TValue))); 231TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue))); 406return new KeyValuePair<TKey, TValue>(Current.Key, Current.Value);
compmod\system\collections\generic\sortedlist.cs (5)
420KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(keys[i],values[i]); 449keyValuePairArray[i + arrayIndex] = new KeyValuePair<TKey, TValue>(keys[i],values[i]); 460objects[i + arrayIndex] = new KeyValuePair<TKey, TValue>(keys[i],values[i]); 753return new KeyValuePair<TKey, TValue>(key, value); 766return new KeyValuePair<TKey, TValue>(key, value);
compmod\system\collections\specialized\stringdictionary.cs (2)
325array[index++] = new KeyValuePair<string, string>((string)entry.Key, (string)entry.Value); 362yield return new KeyValuePair<string, string>((string)dictionaryEntry.Key, (string)dictionaryEntry.Value);
net\System\_IPv6Address.cs (2)
113return new KeyValuePair<int, int>(longestSequenceStart, 117return new KeyValuePair<int, int>(-1, -1); // No compression
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
670 = new KeyValuePair<SocketAddress, string>(SockAddrIn6List[i], IPAddressStrings[i]);
System.Activities (15)
System\Activities\Debugger\DebugManager.cs (4)
147pairsRemaining.Enqueue(new KeyValuePair<Activity, Activity>(rootActivity1, rootActivity2)); 192pairsRemaining.Enqueue(new KeyValuePair<Activity, Activity>(enumerator1.Current, enumerator2.Current)); 219KeyValuePair<Activity, string> pair = new KeyValuePair<Activity, string>(activity, string.Empty); 271pairsRemaining.Enqueue(new KeyValuePair<Activity, string>(childActivity, name));
System\Activities\Debugger\SourceLocationProvider.cs (2)
298pairsRemaining.Enqueue(new KeyValuePair<Activity, Activity>(rootActivity1, rootActivity2)); 340pairsRemaining.Enqueue(new KeyValuePair<Activity, Activity>(enumerator1.Current, enumerator2.Current));
System\Activities\Hosting\SymbolResolver.cs (3)
167array[arrayIndex] = new KeyValuePair<string, object>(pair.Key, pair.Value.Value); 176yield return new KeyValuePair<string, object>(pair.Key, pair.Value.Value); 184yield return new KeyValuePair<string, LocationReference>(pair.Key, pair.Value);
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (1)
180this.instanceExtensions.Add(new KeyValuePair<WorkflowInstanceExtensionProvider, object>(extensionProvider, newExtension));
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (1)
142this.ExtensionProviders.Add(new KeyValuePair<Type, WorkflowInstanceExtensionProvider>(typeof(T), new WorkflowInstanceExtensionProvider<T>(extensionCreationFunction)));
System\Activities\HybridDictionary.cs (2)
222array[arrayIndex] = new KeyValuePair<TKey, TValue>(this.singleItemKey, this.singleItemValue); 239yield return new KeyValuePair<TKey, TValue>(this.singleItemKey, this.singleItemValue);
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (2)
811this.defaultValueNodes.Add(new KeyValuePair<string, XamlNodeQueue>(propertyName, value)); 1154this.Members.Add(new KeyValuePair<XamlMember, XamlNodeQueue>(member, content));
System.Activities.Core.Presentation (3)
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (3)
193result.Add(new KeyValuePair<string, Type>((string)this.FindResource("defaultParameterName"), (Type)type.GetCurrentValue())); 201result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType)); 209result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType));
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\BinaryHeap.cs (1)
53this.items[this.itemCount++] = new KeyValuePair<TKey, TValue>(key, item);
System.Activities.Presentation (13)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
587return new KeyValuePair<string, SourceLocation>(propertyName, defaultValueLocation);
System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
123this.dictionary.Add(new KeyValuePair<TKey, TValue>(item.Key, item.Value));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (6)
157new KeyValuePair<ModelItem, ModelItem>(newKey, value), 158new KeyValuePair<ModelItem, ModelItem>(oldKey, value))); 727new KeyValuePair<ModelItem, ModelItem>(key, value), 728new KeyValuePair<ModelItem, ModelItem>(key, oldValue))); 790new KeyValuePair<ModelItem, ModelItem>(key, value))); 950new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, new KeyValuePair<ModelItem, ModelItem>(key, value)));
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
183KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.Target, item.Value); 213yield return new KeyValuePair<K, V>((K)k, item.Value);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1776if (!glyphCache.TryGetValue(new KeyValuePair<string, bool>(iconName, menuItem.IsEnabled), out glyph)) 1781glyphCache[new KeyValuePair<string, bool>(iconName, menuItem.IsEnabled)] = glyph;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
446this.selectedChild = new KeyValuePair<FrameworkElement, Point>(window, this.canvasOffset);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\Validator.cs (1)
450items.Add(new KeyValuePair<ValidationContext, object>(context, property.GetValue(instance)));
System.Core (2)
Microsoft\Scripting\Actions\ExpandoObject.cs (1)
678yield return new KeyValuePair<string,object>(data.Class.Keys[i], temp);
System\Linq\Parallel\Utils\HashLookup.cs (1)
180get { return new KeyValuePair<TKey, TValue>(slots[index].key, slots[index].value); }
System.Data (12)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
587return new KeyValuePair<string, SourceLocation>(propertyName, defaultValueLocation);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
123this.dictionary.Add(new KeyValuePair<TKey, TValue>(item.Key, item.Value));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (6)
157new KeyValuePair<ModelItem, ModelItem>(newKey, value), 158new KeyValuePair<ModelItem, ModelItem>(oldKey, value))); 727new KeyValuePair<ModelItem, ModelItem>(key, value), 728new KeyValuePair<ModelItem, ModelItem>(key, oldValue))); 790new KeyValuePair<ModelItem, ModelItem>(key, value))); 950new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, new KeyValuePair<ModelItem, ModelItem>(key, value)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
183KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.Target, item.Value); 213yield return new KeyValuePair<K, V>((K)k, item.Value);
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
486KeyValuePair<Type,XmlRootAttribute> key = new KeyValuePair<Type,XmlRootAttribute>(type,attribute); 523key = new KeyValuePair<Type,XmlRootAttribute>(type, new XmlRootAttribute());
System.Data.Entity (127)
System\Data\Common\CommandTrees\DbFunctionCommandTree.cs (1)
99yield return new KeyValuePair<string, TypeUsage>(this._parameterNames[idx], this._parameterTypes[idx]);
System\Data\Common\CommandTrees\DbModificationCommandTree.cs (1)
62return this._parameters.Select(p => new KeyValuePair<string, TypeUsage>(p.ParameterName, p.ResultType));
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
86return this._parameters.Select(p => new KeyValuePair<string, TypeUsage>(p.ParameterName, p.ResultType));
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (3)
63return new KeyValuePair<string, DbExpression>(alias, value); 68return new KeyValuePair<string, DbAggregate>(alias, value); 1828foundValues.Add(new KeyValuePair<string, TRequired>(pi.Name, (TRequired)pi.GetValue(instance, null)));
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (9)
458recordCols.Add(new KeyValuePair<string, TypeUsage>(input.VariableName, input.VariableType)); 459recordCols.Add(new KeyValuePair<string, TypeUsage>(apply.VariableName, apply.VariableType)); 501columns.Add(new KeyValuePair<string, TypeUsage>(input.VariableName, input.VariableType)); 548columns.Add(new KeyValuePair<string, TypeUsage>(left.VariableName, left.VariableType)); 549columns.Add(new KeyValuePair<string, TypeUsage>(right.VariableName, right.VariableType)); 591columns.Add(new KeyValuePair<string, TypeUsage>(keyInfo.Key, keyInfo.Value.ResultType)); 630columns.Add(new KeyValuePair<string, TypeUsage>(aggInfo.Key, aggInfo.Value.ResultType)); 1149return new KeyValuePair<string, DbExpression>(keyMembers[idx].Name, valueExp); 1575columnTypes.Add(new KeyValuePair<string, TypeUsage>(columnValue.Key, columnValue.Value.ResultType));
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
146prop => new KeyValuePair<string, TypeUsage>(prop.Name, prop.TypeUsage) 149mappedPropInfo[idx] = new KeyValuePair<string,TypeUsage>(originalProp.Name, mappedPropType);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
262AppendParameters(funcInfo, func.Parameters.Select(fp => new KeyValuePair<string, TypeUsage>(fp.Name, fp.TypeUsage))); 540AppendParameters(lambdaInfo, expression.Lambda.Variables.Select(v => new KeyValuePair<string, TypeUsage>(v.VariableName, v.ResultType)));
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
259return new KeyValuePair<string, DbExpression>(this.Property.Name, this);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (9)
2514rowTypeDefExpr.Properties.Select(p => new KeyValuePair<string, TypeUsage>(p.Name.Name, ConvertTypeDefinition(p.Type, sr))), 2907projectionItems.Add(new KeyValuePair<string, DbExpression>(aliasName, converted)); 3733aggregates.Add(new KeyValuePair<string, DbAggregate>( 3752aggregates.Add(new KeyValuePair<string, DbAggregate>(groupAggregateVarRef.VariableName, groupAggregateDefinition)); 3759groupKeys.Select(keyInfo => new KeyValuePair<string, DbExpression>(keyInfo.Name, keyInfo.VarBasedKeyExpr)), 3791new KeyValuePair<string, DbExpression>(keyInfo.Name, groupBinding.Variable.Property(keyInfo.Name)))); 3798.Select(groupAggregateInfo => new KeyValuePair<string, DbExpression>( 3915groupPartitionDefinitions.Add(new KeyValuePair<string, DbExpression>( 3929groupPartitionDefinitions.Add(new KeyValuePair<string, DbExpression>(
System\Data\Common\EntitySql\SemanticResolver.cs (2)
1652updatedEntries.Add(new KeyValuePair<string, ScopeEntry>(scopeEntry.Key, newScopeEntry)); 1684return new KeyValuePair<L, R>(Left, Right);
System\Data\Common\EntityUtil.cs (1)
121yield return new KeyValuePair<T1, T2>(firstEnumerator.Current, secondEnumerator.Current);
System\Data\EntityKey.cs (1)
1298yield return new KeyValuePair<string, object>(pair.Key, pair.Value);
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3629m_scalarMemberMappings.Add(member, new KeyValuePair<TypeUsage, TypeUsage>(storeEquivalentTypeUsage, columnMember.TypeUsage));
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (3)
61m_inputIdentifiers.Add(new KeyValuePair<int, DbSetClause>(principal, setter)); 144generatedValues.Add(new KeyValuePair<PropagatorResult, object>(result, value)); 190m_inputIdentifiers[idx] = new KeyValuePair<int, DbSetClause>(inputIdentifier.Key, newClause);
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (4)
152m_inputIdentifiers.Add(new KeyValuePair<int, DbParameter>(principal, parameter)); 178m_resultColumns.Add(new KeyValuePair<string, PropagatorResult>(columnName, result)); 251.Select(r => new KeyValuePair<int, PropagatorResult>(GetColumnOrdinal(translator, reader, r.Key), r.Value)) 269generatedValues.Add(new KeyValuePair<PropagatorResult, object>(result, value));
System\Data\Mapping\Update\Internal\Graph.cs (1)
88yield return new KeyValuePair<TVertex, TVertex>(successors.Key, vertex);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
252returningArguments.Add(new KeyValuePair<string, DbExpression>(property.Name, propertyExpression));
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
703functionMapping.Function.Parameters.Select(paramInfo => new KeyValuePair<string, TypeUsage>(paramInfo.Name, paramInfo.TypeUsage));
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (1)
199this.Slots.Where(slot => slot.IsRequiredByParent).Select(slot => new KeyValuePair<string, DbExpression>(slot.CqlFieldAlias, slot.AsCqt(row))));
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
124typeMap.Add(new KeyValuePair<object, EntityType>(discriminatorValue, currentType)); 137typeMap.Add(new KeyValuePair<object, EntityType>(discriminatorDomain.Single(), elseType));
System\Data\Mapping\ViewValidator.cs (1)
298this.variableScopes.Push(new KeyValuePair<string, DbExpressionEntitySetInfo>(binding.VariableName, info));
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (19)
108this.AddFunction(returnType, functionName, new[] { new KeyValuePair<string, PrimitiveTypeKind>(argumentName, argumentTypeKind) }); 114new[] { new KeyValuePair<string, PrimitiveTypeKind>(argument1Name, argument1TypeKind), 115new KeyValuePair<string, PrimitiveTypeKind>(argument2Name, argument2TypeKind)}); 121new[] { new KeyValuePair<string, PrimitiveTypeKind>(argument1Name, argument1TypeKind), 122new KeyValuePair<string, PrimitiveTypeKind>(argument2Name, argument2TypeKind), 123new KeyValuePair<string, PrimitiveTypeKind>(argument3Name, argument3TypeKind)}); 134new[] { new KeyValuePair<string, PrimitiveTypeKind>(argument1Name, argument1TypeKind), 135new KeyValuePair<string, PrimitiveTypeKind>(argument2Name, argument2TypeKind), 136new KeyValuePair<string, PrimitiveTypeKind>(argument3Name, argument3TypeKind), 137new KeyValuePair<string, PrimitiveTypeKind>(argument4Name, argument4TypeKind), 138new KeyValuePair<string, PrimitiveTypeKind>(argument5Name, argument5TypeKind), 139new KeyValuePair<string, PrimitiveTypeKind>(argument6Name, argument6TypeKind)}); 151new[] { new KeyValuePair<string, PrimitiveTypeKind>(argument1Name, argument1TypeKind), 152new KeyValuePair<string, PrimitiveTypeKind>(argument2Name, argument2TypeKind), 153new KeyValuePair<string, PrimitiveTypeKind>(argument3Name, argument3TypeKind), 154new KeyValuePair<string, PrimitiveTypeKind>(argument4Name, argument4TypeKind), 155new KeyValuePair<string, PrimitiveTypeKind>(argument5Name, argument5TypeKind), 156new KeyValuePair<string, PrimitiveTypeKind>(argument6Name, argument6TypeKind), 157new KeyValuePair<string, PrimitiveTypeKind>(argument7Name, argument7TypeKind)});
System\Data\Metadata\ObjectHelper.cs (1)
99yield return new KeyValuePair<T, S>((T)leftEnumerator.Current, rightEnumerator.Current);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (3)
393new KeyValuePair<EdmProperty, PropertyInfo>( 430new KeyValuePair<NavigationProperty, PropertyInfo>( 608typeClosureToTrack.Add(new KeyValuePair<EdmProperty, PropertyInfo>(cspaceProperty, clrProperty));
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (2)
88_conventionCSpaceTypeNames[edmType.Name] = new KeyValuePair<EdmType, int>(pair.Key, pair.Value + 1); 92pair = new KeyValuePair<EdmType, int>(edmType, 1);
System\Data\Metadata\TypeHelpers.cs (1)
420resultCols.Add(new KeyValuePair<string, TypeUsage>(keyProperty.Name, Helper.GetModelTypeUsage(keyProperty)));
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
437new KeyValuePair<string, EntityKey>(RelationshipNavigation.From, ownerKey), 438new KeyValuePair<string, EntityKey>(RelationshipNavigation.To, DetachedEntityKey));
System\Data\Objects\DataClasses\RelatedEnd.cs (8)
1786new KeyValuePair<string, EntityKey>(_navigation.From, ownerKey), 1787new KeyValuePair<string, EntityKey>(_navigation.To, entityKey)); 2161new KeyValuePair<string, EntityKey>(_navigation.From, ownerKey), 2162new KeyValuePair<string, EntityKey>(_navigation.To, entityKey)), 2248new KeyValuePair<string, EntityKey>(navigation.From, ownerKey), 2249new KeyValuePair<string, EntityKey>(navigation.To, entityKey)); 2262new KeyValuePair<string, EntityKey>(navigation.From, ownerKey), 2263new KeyValuePair<string, EntityKey>(navigation.To, entityKey));
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
320_parameters.Add(new KeyValuePair<ObjectParameter, QueryParameterExpression>(parameter, queryParameter)); 693this._parameters.Add(new KeyValuePair<ObjectParameter, QueryParameterExpression>(prm.ShallowCopy(), null));
System\Data\Objects\ELinq\MethodCallTranslator.cs (10)
661newColumns.Add(new KeyValuePair<string, DbExpression>(propertyExpr.Property.Name, newExpr)); 665newColumns.Add(new KeyValuePair<string, DbExpression>(propertyExpr.Property.Name, propertyExpr)); 1621new KeyValuePair<string, TypeUsage>(outerBinding.VariableName, outerBinding.VariableType), 1622new KeyValuePair<string, TypeUsage>(innerBinding.VariableName, innerBinding.VariableType) 2543new KeyValuePair<string, TypeUsage>(newInput.VariableName, newInput.VariableType), 2544new KeyValuePair<string, TypeUsage>(newApply.VariableName, newApply.VariableType) 2761keys.Add(new KeyValuePair<string, CqtExpression>(KeyColumnName, keySelector)); 2762aggregates.Add(new KeyValuePair<string, DbAggregate>(GroupColumnName, sourceGroupBinding.GroupAggregate)); 2886recordColumns.Add(new KeyValuePair<string, CqtExpression>(outerColumn, outerBinding.Variable)); 2887recordColumns.Add(new KeyValuePair<string, CqtExpression>(innerColumn, nestedCollection));
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
437.Select((t, i) => new KeyValuePair<Type, int>(t, i))
System\Data\Objects\ELinq\Translator.cs (6)
370collectionColumns.Add(new KeyValuePair<string, DbExpression>( 372collectionColumns.Add(new KeyValuePair<string, DbExpression>( 499yield return new KeyValuePair<Type, Type>(type, collectionElementType); 507yield return new KeyValuePair<Type, Type>(interfaceType, collectionElementType); 732recordColumns.Add(new KeyValuePair<string, DbExpression>(memberName, memberValue)); 843recordColumns.Add(new KeyValuePair<string, DbExpression>(memberName, memberValue));
System\Data\Objects\EntityEntry.cs (2)
2776properties[propertyName] = new KeyValuePair<object, IntBox>(propertyValue, new IntBox(1)); 2929properties[member.Name] = new KeyValuePair<object, IntBox>(this.GetCurrentEntityValue(member.Name), new IntBox(1));
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1366_referenceProperties.Add(new KeyValuePair<NavigationProperty,PropertyInfo>(navProperty, baseProperty)); 1396_collectionProperties.Add(new KeyValuePair<NavigationProperty, PropertyInfo>(navProperty, baseProperty));
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
244tracking.ColumnDefinitions.Add(new KeyValuePair<string, DbExpression>(tracking.ColumnNames.Next(), columnDef));
System\Data\Objects\Internal\ObjectSpanRewriter.cs (4)
273new KeyValuePair<string, DbExpression>( 297new KeyValuePair<string, DbExpression>( 623retList.Add(new KeyValuePair<AssociationEndMember, AssociationEndMember>(end0, end1)); 636retList.Add(new KeyValuePair<AssociationEndMember, AssociationEndMember>(end1, end0));
System\Data\Objects\ObjectStateManager.cs (2)
2283new KeyValuePair<string, EntityKey>(relatedEnd.SourceRoleName, sourceEntry.EntityKey), 2284new KeyValuePair<string, EntityKey>(relatedEnd.TargetRoleName, targetEntry.EntityKey));
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
775referencedGroupAggregateVarInfo.CandidateAggregateNodes.Add(new KeyValuePair<Node, Node>(n, templateNode));
System\Data\Query\PlanCompiler\CodeGen.cs (1)
133KeyValuePair<int, int> varLocation = new KeyValuePair<int, int>(commandId, columnPos);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (4)
1215projectedCols.Add(new KeyValuePair<string, DbExpression>(columnName, columnValue)); 1372projectedCols.Add(new KeyValuePair<string, DbExpression>("C0", constExpr)); 1700keyExprs.Add(new KeyValuePair<string, DbExpression>(keyColName, ResolveVar(keyVar))); 1787aggregates.Add(new KeyValuePair<string, DbAggregate>(aggColName, aggMap[aggVar]));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1851yield return new KeyValuePair<TypeUsage, bool>(currentFilter.requiredType, currentFilter.isExact);
System\Data\Query\PlanCompiler\JoinGraph.cs (1)
1100edgeVars.Add(new KeyValuePair<ColumnVar, ColumnVar>(keyVars[i], valueVars[i]));
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
651return new KeyValuePair<md.EdmProperty, Node>(property, n);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1613keyFieldTypes.Add(new KeyValuePair<string, TypeUsage>(k.Name, k.TypeUsage));
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
990fieldList.Add(new KeyValuePair<string, md.TypeUsage>(fieldName, propertyType));
System\Data\Query\ResultAssembly\BridgeDataReader.cs (1)
147return new KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>(recordShaper, recordShaper.RootCoordinator.TypedCoordinatorFactory);
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (1)
450projectColumns.Add(new KeyValuePair<string, DbExpression>(name, pe));
System.Data.Entity.Design (7)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (2)
472KeyValuePair<string, string> namespacesPrefix = new KeyValuePair<string, string>(DesignXmlConstants.AnnotationPrefix, DesignXmlConstants.EdmAnnotationNamespace); 966return new KeyValuePair<string, RelationshipMultiplicity>(storeConstraint.FromRole.Name, RelationshipMultiplicity.One);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
272var xmlPrefixToNamespace = new KeyValuePair<string, string>("store", DesignXmlConstants.EntityStoreSchemaGeneratorNamespace); 1606projectList.Add(new KeyValuePair<string, DbExpression>(member.Name,
System\Data\EntityModel\Emitters\TypeReference.cs (3)
114return _fromStringMemoizer.Evaluate(new KeyValuePair<string, bool>(type, addGlobalQualifier)); 203return _fromStringGenericMemoizer.Evaluate(new KeyValuePair<string, CodeTypeReference>(namespaceName + "." + name, typeParameter)); 210CodeTypeReference typeRef = ComputeFromString(new KeyValuePair<string, bool>(name, true));
System.Data.Linq (1)
ChangeDirector.cs (1)
310this.SyncRollbackItems.Add(new KeyValuePair<TrackedObject, object[]>(item, syncRollbackValues));
System.Data.Services (34)
System\Data\Services\HttpProcessUtility.cs (2)
396result = new KeyValuePair<Version, string>(new Version(versionText), libraryName); 708parameters[parameters.Length - 1] = new KeyValuePair<string, string>(parameterName, parameterValue);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
717attributeExtensions = new KeyValuePair<XmlQualifiedName, string>[] { new KeyValuePair<XmlQualifiedName, string>(mediaResourceETagKey, mediaETag) };
System\Data\Services\UpdatableWrapper.cs (1)
418etagPropertyInfo[i] = new KeyValuePair<string, object>(etagProperties[i].Name, propertyValue);
System\Data\Services\WebUtil.cs (30)
69new KeyValuePair<Type, string>(typeof(string), XmlConstants.EdmStringTypeName), 70new KeyValuePair<Type, string>(typeof(Boolean), XmlConstants.EdmBooleanTypeName), 71new KeyValuePair<Type, string>(typeof(Boolean?), XmlConstants.EdmBooleanTypeName), 72new KeyValuePair<Type, string>(typeof(Byte), XmlConstants.EdmByteTypeName), 73new KeyValuePair<Type, string>(typeof(Byte?), XmlConstants.EdmByteTypeName), 74new KeyValuePair<Type, string>(typeof(DateTime), XmlConstants.EdmDateTimeTypeName), 75new KeyValuePair<Type, string>(typeof(DateTime?), XmlConstants.EdmDateTimeTypeName), 76new KeyValuePair<Type, string>(typeof(Decimal), XmlConstants.EdmDecimalTypeName), 77new KeyValuePair<Type, string>(typeof(Decimal?), XmlConstants.EdmDecimalTypeName), 78new KeyValuePair<Type, string>(typeof(Double), XmlConstants.EdmDoubleTypeName), 79new KeyValuePair<Type, string>(typeof(Double?), XmlConstants.EdmDoubleTypeName), 80new KeyValuePair<Type, string>(typeof(Guid), XmlConstants.EdmGuidTypeName), 81new KeyValuePair<Type, string>(typeof(Guid?), XmlConstants.EdmGuidTypeName), 82new KeyValuePair<Type, string>(typeof(Int16), XmlConstants.EdmInt16TypeName), 83new KeyValuePair<Type, string>(typeof(Int16?), XmlConstants.EdmInt16TypeName), 84new KeyValuePair<Type, string>(typeof(Int32), XmlConstants.EdmInt32TypeName), 85new KeyValuePair<Type, string>(typeof(Int32?), XmlConstants.EdmInt32TypeName), 86new KeyValuePair<Type, string>(typeof(Int64), XmlConstants.EdmInt64TypeName), 87new KeyValuePair<Type, string>(typeof(Int64?), XmlConstants.EdmInt64TypeName), 88new KeyValuePair<Type, string>(typeof(SByte), XmlConstants.EdmSByteTypeName), 89new KeyValuePair<Type, string>(typeof(SByte?), XmlConstants.EdmSByteTypeName), 90new KeyValuePair<Type, string>(typeof(Single), XmlConstants.EdmSingleTypeName), 91new KeyValuePair<Type, string>(typeof(Single?), XmlConstants.EdmSingleTypeName), 92new KeyValuePair<Type, string>(typeof(byte[]), XmlConstants.EdmBinaryTypeName), 95new KeyValuePair<Type, string>(typeof(XElement), XmlConstants.EdmStringTypeName), 96new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.EdmBinaryTypeName), 103new KeyValuePair<Type, string>(typeof(byte[]), XmlConstants.MimeApplicationOctetStream), 104new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.MimeApplicationOctetStream), 111new KeyValuePair<Type, ContentFormat>(typeof(byte[]), ContentFormat.Binary), 112new KeyValuePair<Type, ContentFormat>(typeof(Binary), ContentFormat.Binary),
System.Data.Services.Client (4)
parent\Server\System\Data\Services\HttpProcessUtility.cs (2)
396result = new KeyValuePair<Version, string>(new Version(versionText), libraryName); 708parameters[parameters.Length - 1] = new KeyValuePair<string, string>(parameterName, parameterValue);
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
449.Select((t, i) => new KeyValuePair<Type, int>(t, i))
System\Data\Services\Client\AtomParser.cs (1)
178return new KeyValuePair<XmlReader, object>(Xml.XmlWrappingReader.CreateReader(readerBaseUri, element.CreateReader()), element);
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\TypeReference.cs (3)
106return _fromStringMemoizer.Evaluate(new KeyValuePair<string, bool>(type, addGlobalQualifier)); 166return _fromStringGenericMemoizer.Evaluate(new KeyValuePair<string, CodeTypeReference>(fullname, typeParameter)); 173CodeTypeReference typeRef = ComputeFromString(new KeyValuePair<string, bool>(name, true));
System.IdentityModel (1)
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
1178properties.Add(new KeyValuePair<string, string>(name, value));
System.Runtime.DurableInstancing (1)
System\Runtime\PersistencePipeline.cs (1)
374return this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => new KeyValuePair<XName, object>(value.Key, value.Value.Value)).GetEnumerator();
System.ServiceModel (22)
System\ServiceModel\Channels\MessageProperties.cs (10)
739array[index++] = new KeyValuePair<string, object>(ViaKey, via); 742array[index++] = new KeyValuePair<string, object>(AllowOutputBatchingKey, allowOutputBatching); 745array[index++] = new KeyValuePair<string, object>(SecurityKey, this.security.CreateCopy()); 748array[index++] = new KeyValuePair<string, object>(EncoderKey, encoder); 761array[index++] = new KeyValuePair<string, object>(propertyName, CreateCopyOfPropertyValue(properties[i].Value)); 809pairs.Add(new KeyValuePair<string, object>(ViaKey, via)); 812pairs.Add(new KeyValuePair<string, object>(AllowOutputBatchingKey, allowOutputBatching)); 815pairs.Add(new KeyValuePair<string, object>(SecurityKey, security)); 818pairs.Add(new KeyValuePair<string, object>(EncoderKey, encoder)); 831pairs.Add(new KeyValuePair<string, object>(propertyName, properties[i].Value));
System\ServiceModel\Channels\UriPrefixTable.cs (1)
483result.Add(new KeyValuePair<BaseUriWithWildcard, TData>(path, localData));
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (2)
263digits[i] = new KeyValuePair<K, IEnumerator<V>>(kvp.Key, kvp.Value.GetEnumerator()); 288digits[currentDigit] = new KeyValuePair<K, IEnumerator<V>>(digits[currentDigit].Key, newDigit);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
312multipleHeaderValues[headerDescription.Index] = new KeyValuePair<System.Type, System.Collections.ArrayList>(headerDescription.TypedHeader ? TypedHeaderManager.GetMessageHeaderType(headerDescription.Type) : headerDescription.Type, new ArrayList());
System\ServiceModel\Dispatcher\MatchSingleFxEngineOpcode.cs (1)
154context.Processor.ResultSet.Add(new KeyValuePair<MessageQuery, XPathResult>((MessageQuery)this.item, result));
System\ServiceModel\Dispatcher\MessageQueryTable.cs (1)
244return new KeyValuePair<MessageQuery, TResult>(query, result);
System\ServiceModel\Dispatcher\QueryMatcher.cs (3)
176new KeyValuePair<MessageQuery, TResult>( 182new KeyValuePair<MessageQuery, TResult>( 187typedResults.Add(new KeyValuePair<MessageQuery, TResult>(
System\ServiceModel\Dispatcher\QueryResultOp.cs (2)
221context.Processor.ResultSet.Add(new KeyValuePair<MessageQuery, XPathResult>((MessageQuery)this.results[0], result)); 225context.Processor.ResultSet.Add(new KeyValuePair<MessageQuery, XPathResult>((MessageQuery)this.results[i], result.Copy()));
System\ServiceModel\Security\SecuritySessionFilter.cs (1)
266this.contextMappings.Add(sessionFilter.SecurityContextTokenId, new KeyValuePair<MessageFilter, FilterData>(filter, data));
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\InternalSendMessage.cs (2)
1377this.lastUsedFactoryCacheItem = new KeyValuePair<ObjectCacheItem<ChannelFactoryReference>, SendMessageChannelCache>(null, null); 2578this.parent.lastUsedFactoryCacheItem = new KeyValuePair<ObjectCacheItem<ChannelFactoryReference>, SendMessageChannelCache>(this.cacheItem, this.CacheExtension);
System\ServiceModel\Activities\Tracking\Configuration\TrackingQueryElement.cs (1)
73trackingQuery.QueryAnnotations.Add(new KeyValuePair<string, string>(annotation.Name, annotation.Value));
System.ServiceModel.Internals (4)
System\Runtime\Collections\NullableKeyDictionary.cs (2)
176array[arrayIndex + this.innerDictionary.Count] = new KeyValuePair<TKey, TValue>(default(TKey), this.nullKeyValue); 212yield return new KeyValuePair<TKey, TValue>(default(TKey), this.nullKeyValue);
System\Runtime\Collections\OrderedDictionary.cs (2)
181array[index] = new KeyValuePair<TKey, TValue>((TKey)entry.Key, (TValue)entry.Value); 190yield return new KeyValuePair<TKey, TValue>((TKey)entry.Key, (TValue)entry.Value);
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpPage.cs (2)
92new KeyValuePair<UriTemplate, object>(new UriTemplate(OperationListHelpPageUriTemplate), HelpMethodName), 93new KeyValuePair<UriTemplate, object>(new UriTemplate(OperationHelpPageUriTemplate), HelpOperationMethodName)
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (1)
185queryMapping.Add(i, new KeyValuePair<string, Type>(parameterName, mpd.Type));
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (1)
105methodSpecificTable.KeyValuePairs.Add(new KeyValuePair<UriTemplate, object>(ut, od.Name));
System.Web (4)
Hosting\ProcessHost.cs (1)
1187_customLoaderStartupError = new KeyValuePair<string, ExceptionDispatchInfo>(appId, error);
ModelBinding\DictionaryHelpers.cs (1)
11yield return new KeyValuePair<string, TValue>(prefix, exactMatchValue);
ModelBinding\KeyValuePairModelBinder`2.cs (1)
30bindingContext.Model = new KeyValuePair<TKey, TValue>(key, value);
State\SessionStateModule.cs (1)
1084((ICollection<KeyValuePair<string, int>>)s_queuedRequestsNumPerSession).Remove(new KeyValuePair<string,int>(_rqId, 0));
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceWrapper.cs (1)
141referenceList.Add(new KeyValuePair<EntityDataSourceReferenceKeyColumn, object>(
System.Web.Extensions (1)
Util\OrderedDictionary.cs (1)
92yield return new KeyValuePair<TKey, TValue>(key, _values[i]);
System.Windows.Forms (1)
misc\GDI\WindowsGraphicsCacheManager.cs (1)
183KeyValuePair<Font, WindowsFont> newEntry = new KeyValuePair<Font, WindowsFont>(font, winFont);
System.Workflow.Runtime (9)
Tracking\SqlTrackingService.cs (8)
1398annotations.Add(new KeyValuePair<long, string>(eventId1, s)); 1403annotations.Add(new KeyValuePair<long, string>(eventId2, s)); 1607annotations.Add(new KeyValuePair<long, string>(eventId, s)); 1610items.Add(new KeyValuePair<long, TrackingDataItem>(eventId, item)); 1718annotations.Add(new KeyValuePair<long, string>(eventId, s)); 1721items.Add(new KeyValuePair<long, TrackingDataItem>(eventId, item)); 1886annotations.Add(new KeyValuePair<long, string>(dataItemId, s)); 2087annotations.Add(new KeyValuePair<long, string>(eventId, s));
WorkflowQueuingService.cs (1)
312q.Enqueue(new KeyValuePair<IComparable, EventQueueState>(queueName, qState));
System.WorkflowServices (10)
System\Workflow\Activities\ReceiveActivity.cs (3)
713new KeyValuePair<Type, string>(operationDeclaringType, serviceOperationInfo.Name); 1407outputParameters.Add(new KeyValuePair<int, string>(parameter.Position, parameter.Name)); 1419inputParameters.Add(new KeyValuePair<int, string>(parameter.Position, parameter.Name));
System\Workflow\Activities\ReceiveContext.cs (3)
79new KeyValuePair<string, string>(WellKnownContextProperties.InstanceId, workflowId), 80new KeyValuePair<string, string>(WellKnownContextProperties.ConversationId, Guid.NewGuid().ToString())); 85new KeyValuePair<string, string>(WellKnownContextProperties.InstanceId, workflowId));
System\Workflow\Activities\SendActivity.cs (2)
622outputParameters.Add(new KeyValuePair<int, string>(parameter.Position, parameter.Name)); 627inputParameters.Add(new KeyValuePair<int, string>(parameter.Position, parameter.Name));
System\Workflow\Activities\ServiceOperationHelpers.cs (1)
288new KeyValuePair<Type, string>(opDescription.DeclaringContract.ContractType, opDescription.Name);
System\Workflow\Runtime\Hosting\ChannelManager.cs (1)
136this.endpointMappings[cacheAddress] = new KeyValuePair<string, Type>(endpointName, contractType);
WindowsBase (3)
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (1)
785KeyValuePair<string, string> result = new KeyValuePair<string, string>(name, value);
Base\System\Windows\NameScope.cs (2)
254array[arrayIndex++] = new KeyValuePair<string, object>((string)entry.Key, entry.Value); 430return new KeyValuePair<string, object>((string)_enumerator.Key, _enumerator.Value);
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (1)
104return new KeyValuePair<string, AttributeParameterData>(member.Name, propertyInfo);