365 instantiations of KeyValuePair
mscorlib (32)
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 (7)
263array[index++] = new KeyValuePair<TKey,TValue>(entries[i].key, entries[i].value); 573objects[index++] = new KeyValuePair<TKey,TValue>(entries[i].key, entries[i].value); 713current = new KeyValuePair<TKey, TValue>(); 725current = new KeyValuePair<TKey, TValue>(dictionary.entries[index].key, dictionary.entries[index].value); 733current = new KeyValuePair<TKey, TValue>(); 753return new KeyValuePair<TKey, TValue>(current.Key, current.Value); 764current = new KeyValuePair<TKey, TValue>();
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 (2)
System\Activities\DurableInstancing\BinaryHeap.cs (2)
15readonly KeyValuePair<TKey, TValue> EmptyItem = new KeyValuePair<TKey, TValue>(); 53this.items[this.itemCount++] = new KeyValuePair<TKey, TValue>(key, item);
System.Activities.Presentation (14)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (2)
587return new KeyValuePair<string, SourceLocation>(propertyName, defaultValueLocation); 590return new KeyValuePair<string, SourceLocation>();
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 (13)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (2)
587return new KeyValuePair<string, SourceLocation>(propertyName, defaultValueLocation); 590return new KeyValuePair<string, SourceLocation>();
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 (9)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (4)
472KeyValuePair<string, string> namespacesPrefix = new KeyValuePair<string, string>(DesignXmlConstants.AnnotationPrefix, DesignXmlConstants.EdmAnnotationNamespace); 944return new KeyValuePair<string, RelationshipMultiplicity>(); 966return new KeyValuePair<string, RelationshipMultiplicity>(storeConstraint.FromRole.Name, RelationshipMultiplicity.One); 969return new KeyValuePair<string, RelationshipMultiplicity>();
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);
1991 references to KeyValuePair
ComSvcConfig (3)
Tool.cs (3)
482IEnumerator<KeyValuePair<Guid, Dictionary<Guid, Dictionary<Guid, List<EndpointConfig>>>>> enumerateApps = applicationToComponents.GetEnumerator(); 485IEnumerator<KeyValuePair<Guid, Dictionary<Guid, List<EndpointConfig>>>> enumerateComponents = enumerateApps.Current.Value.GetEnumerator(); 510IEnumerator<KeyValuePair<Guid, List<EndpointConfig>>> enumerateInterfaces = enumerateComponents.Current.Value.GetEnumerator();
mscorlib (213)
system\Collections\Concurrent\ConcurrentDictionary.cs (25)
112private KeyValuePair<TKey, TValue>[] m_serializationArray; // Used for custom serialization 210public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection) : this(collection, EqualityComparer<TKey>.Default) { } 240public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer) 270int concurrencyLevel, IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer) 279private void InitializeFromCollection(IEnumerable<KeyValuePair<TKey, TValue>> collection) 282foreach (KeyValuePair<TKey, TValue> pair in collection) 654void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index) 691public KeyValuePair<TKey, TValue>[] ToArray() 708return Array.Empty<KeyValuePair<TKey, TValue>>(); 711KeyValuePair<TKey, TValue>[] array = new KeyValuePair<TKey, TValue>[count]; 727private void CopyToPairs(KeyValuePair<TKey, TValue>[] array, int index) 785public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() 1406void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) 1420bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair) 1437bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly 1453bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) 1705KeyValuePair<TKey, TValue>[] pairs = array as KeyValuePair<TKey, TValue>[]; 2151IEnumerator<KeyValuePair<TKey, TValue>> m_enumerator; // Enumerator over the dictionary. 2211KeyValuePair<TKey, TValue>[] array = m_serializationArray;
system\collections\concurrent\OrderablePartitioner.cs (8)
106public abstract IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount); 133public virtual IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions() 174IList<IEnumerator<KeyValuePair<long, TSource>>> orderablePartitions = GetOrderablePartitions(partitionCount); 215IEnumerable<KeyValuePair<long, TSource>> orderablePartitions = GetOrderableDynamicPartitions(); 224private readonly IEnumerable<KeyValuePair<long, TSource>> m_source; 225public EnumerableDropIndices(IEnumerable<KeyValuePair<long, TSource>> source) 249private readonly IEnumerator<KeyValuePair<long, TSource>> m_source; 250public EnumeratorDropIndices(IEnumerator<KeyValuePair<long, TSource>> source)
system\collections\concurrent\PartitionerStatic.cs (43)
326private abstract class DynamicPartitionEnumerator_Abstract<TSource, TSourceReader> : IEnumerator<KeyValuePair<long, TSource>> 392public abstract KeyValuePair<long, TSource> Current { get; } 521override public IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount) 527IEnumerator<KeyValuePair<long, TSource>>[] partitions 528= new IEnumerator<KeyValuePair<long, TSource>>[partitionCount]; 530IEnumerable<KeyValuePair<long, TSource>> partitionEnumerable = new InternalPartitionEnumerable(m_source.GetEnumerator(), m_useSingleChunking, true); 542override public IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions() 562private class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>, IDisposable 568private volatile KeyValuePair<long, TSource>[] m_FillBuffer; // intermediate buffer to reduce locking 607m_FillBuffer = new KeyValuePair<long, TSource>[fillBufferMultiplier * Partitioner.GetDefaultChunkSize<TSource>()]; 626public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator() 649private void TryCopyFromFillBuffer(KeyValuePair<long, TSource>[] destArray, 657KeyValuePair<long, TSource>[] fillBufferLocalRef = m_FillBuffer; 695internal bool GrabChunk(KeyValuePair<long, TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed) 721internal bool GrabChunk_Single(KeyValuePair<long,TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed) 770internal bool GrabChunk_Buffered(KeyValuePair<long,TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed) 904private KeyValuePair<long, TSource>[] m_localList; //defer allocating to avoid false sharing 958m_localList = new KeyValuePair<long, TSource>[m_maxChunkSize]; 987override public KeyValuePair<long, TSource> Current 1049protected abstract IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TCollection data); 1057override public IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount) 1063IEnumerator<KeyValuePair<long, TSource>>[] partitions 1064= new IEnumerator<KeyValuePair<long, TSource>>[partitionCount]; 1065IEnumerable<KeyValuePair<long, TSource>> partitionEnumerable = GetOrderableDynamicPartitions_Factory(m_data); 1077override public IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions() 1214override protected IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(IList<TSource> m_data) 1224private class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>> 1236public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator() 1266override public KeyValuePair<long, TSource> Current 1300override protected IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TSource[] m_data) 1309private class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>> 1327public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator() 1350override public KeyValuePair<long, TSource> Current 1402protected abstract IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex); 1421override public IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount) 1431IEnumerator<KeyValuePair<long, TSource>>[] partitions = new IEnumerator<KeyValuePair<long, TSource>>[partitionCount]; 1460private abstract class StaticIndexRangePartition<TSource> : IEnumerator<KeyValuePair<long, TSource>> 1487public abstract KeyValuePair<long, TSource> Current { get; } 1554override protected IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex) 1577override public KeyValuePair<long, TSource> Current 1612override protected IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex) 1634override public KeyValuePair<long, TSource> Current
system\collections\generic\debugview.cs (3)
100public KeyValuePair<K, V>[] Items { 102KeyValuePair<K, V>[] items = new KeyValuePair<K, V>[dict.Count];
system\collections\generic\dictionary.cs (24)
113foreach (KeyValuePair<TKey,TValue> pair in dictionary) { 195void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) { 199bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair) { 207bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) { 246private void CopyTo(KeyValuePair<TKey,TValue>[] array, int index) { 272IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() { 291KeyValuePair<TKey, TValue>[] array = new KeyValuePair<TKey, TValue>[Count]; 293info.AddValue(KeyValuePairsName, array, typeof(KeyValuePair<TKey, TValue>[])); 417KeyValuePair<TKey, TValue>[] array = (KeyValuePair<TKey, TValue>[]) 418siInfo.GetValue(KeyValuePairsName, typeof(KeyValuePair<TKey, TValue>[])); 520bool ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly { 524void ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[] array, int index) { 549KeyValuePair<TKey,TValue>[] pairs = array as KeyValuePair<TKey,TValue>[]; 696public struct Enumerator: IEnumerator<KeyValuePair<TKey,TValue>>, 702private KeyValuePair<TKey,TValue> current; 737public KeyValuePair<TKey,TValue> Current {
system\collections\generic\idictionary.cs (1)
28public interface IDictionary<TKey, TValue> : ICollection<KeyValuePair<TKey, TValue>>
system\collections\generic\ireadonlydictionary.cs (1)
24public interface IReadOnlyDictionary<TKey, TValue> : IReadOnlyCollection<KeyValuePair<TKey, TValue>>
system\collections\objectmodel\readonlydictionary.cs (16)
123bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) { 127void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) { 131bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { 135void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) { 139void ICollection<KeyValuePair<TKey, TValue>>.Clear() { 143bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) { 152public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() { 252KeyValuePair<TKey, TValue>[] pairs = array as KeyValuePair<TKey, TValue>[]; 259foreach (var item in m_dictionary) { 270foreach (var item in m_dictionary) { 303private IEnumerator<KeyValuePair<TKey, TValue>> m_enumerator;
system\diagnostics\eventing\eventsource.cs (4)
6165foreach (var item in this.channelTab) 6333var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>(); 6334foreach (KeyValuePair<int, ChannelInfo> p in channelTab) { sortedChannels.Add(p); } 6336foreach (var kvpair in sortedChannels)
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (6)
64public void Add(KeyValuePair<string, object> payloadEntry) 74public bool Contains(KeyValuePair<string, object> entry) 96public IEnumerator<KeyValuePair<string, object>> GetEnumerator() 106var instance = this as IEnumerable<KeyValuePair<string, object>>; 110public void CopyTo(KeyValuePair<string, object>[] payloadEntries, int count) 120public bool Remove(KeyValuePair<string, object> entry)
System\Diagnostics\Eventing\TraceLogging\NameInfo.cs (2)
16: ConcurrentSetItem<KeyValuePair<string, EventTags>, NameInfo> 60public override int Compare(KeyValuePair<string, EventTags> key)
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (4)
975: TraceLoggingTypeInfo<KeyValuePair<K, V>> 998ref KeyValuePair<K, V> value) 1009var keyValuePair = (KeyValuePair<K, V>) value;
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
793else if (IsGenericMatch(dataType, typeof(KeyValuePair<,>)))
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (1)
33private ConcurrentSet<KeyValuePair<string, EventTags>, NameInfo> nameInfos;
system\internal.cs (6)
93new Dictionary<Object, KeyValuePair<Object,Object>>(); 94new Dictionary<KeyValuePair<Object,Object>, Object>(); 127new List<KeyValuePair<Object, Object>>(); 318WinRT_IEnumerable<KeyValuePair<K, V>>(null, null, null); 344WinRT_IEnumerable<KeyValuePair<K, V>>(null, null, null); 345WinRT_IReadOnlyCollection<KeyValuePair<K, V>>(null);
system\resources\resourcewriter.cs (1)
402foreach (KeyValuePair<String, PrecannedResource> entry in _preserializedData)
system\runtime\interopservices\windowsruntime\clrikeyvaluepairimpl.cs (4)
19private readonly KeyValuePair<K, V> _pair; 21public CLRIKeyValuePairImpl([In] ref KeyValuePair<K, V> pair) 44KeyValuePair<K, V> unboxedPair = (KeyValuePair<K, V>)pair;
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
431type.GetGenericTypeDefinition() == typeof(System.Collections.Generic.KeyValuePair<,>))
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (16)
33private class KeyValuePairComparator : IComparer<KeyValuePair<TKey, TValue>> 37public Int32 Compare(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y) 46private readonly KeyValuePair<TKey, TValue>[] items; 81private ConstantSplittableMap(KeyValuePair<TKey, TValue>[] items, Int32 firstItemIndex, Int32 lastItemIndex) 89private KeyValuePair<TKey, TValue>[] CreateKeyValueArray(Int32 count, IEnumerator<KeyValuePair<TKey, TValue>> data) 91KeyValuePair<TKey, TValue>[] kvArray = new KeyValuePair<TKey, TValue>[count]; 102private KeyValuePair<TKey, TValue>[] CreateKeyValueArray(Int32 count, IEnumerator<IKeyValuePair<TKey, TValue>> data) 104KeyValuePair<TKey, TValue>[] kvArray = new KeyValuePair<TKey, TValue>[count]; 191KeyValuePair<TKey, TValue> searchKey = new KeyValuePair<TKey, TValue>(key, default(TValue)); 198KeyValuePair<TKey, TValue> searchKey = new KeyValuePair<TKey, TValue>(key, default(TValue)); 236private KeyValuePair<TKey, TValue>[] _array; 241internal IKeyValuePairEnumerator(KeyValuePair<TKey, TValue>[] items, int first, int end)
system\runtime\interopservices\windowsruntime\dictionarykeycollection.cs (2)
42foreach (KeyValuePair<TKey, TValue> mapping in dictionary) 92private IEnumerator<KeyValuePair<TKey, TValue>> enumeration;
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (2)
45foreach (KeyValuePair<TKey, TValue> mapping in dictionary) 99private IEnumerator<KeyValuePair<TKey, TValue>> enumeration;
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
218foreach (KeyValuePair<EventRegistrationToken, T> registration in m_tokens)
system\runtime\interopservices\windowsruntime\imapviewtoireadonlydictionaryadapter.cs (2)
193private IEnumerator<KeyValuePair<TKey, TValue>> enumeration; 292private IEnumerator<KeyValuePair<TKey, TValue>> enumeration;
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (18)
59IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 80internal void Add<K, V>(KeyValuePair<K, V> item) 91IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 109IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 116internal bool Contains<K, V>(KeyValuePair<K, V> item) 133IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 142internal void CopyTo<K, V>(KeyValuePair<K, V>[] array, int arrayIndex) 158IIterable<KeyValuePair<K, V>> _this = JitHelpers.UnsafeCast<IIterable<KeyValuePair<K, V>>>(this); 159foreach (KeyValuePair<K, V> mapping in _this) 167internal bool Remove<K, V>(KeyValuePair<K, V> item) 178IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 190VectorToListAdapter.RemoveAtHelper<KeyValuePair<K, V>>(_this_vector, index);
system\runtime\interopservices\windowsruntime\mapviewtoreadonlycollectionadapter.cs (2)
59IVectorView<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVectorView<KeyValuePair<K, V>>>(this);
system\security\policy\evidence.cs (3)
122foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in evidence.m_evidence) 1032foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in m_evidence) 1479foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in m_evidence)
system\security\policy\hash.cs (1)
503foreach (KeyValuePair<Type, byte[]> hashValue in m_hashes)
system\stubhelpers.cs (4)
850internal static unsafe void ConvertContentsToNative_KeyValuePair<K, V>(ref KeyValuePair<K, V>[] managedArray, IntPtr pNativeHome) 924internal static unsafe void ConvertContentsToManaged_KeyValuePair<K, V>(ref KeyValuePair<K, V>[] managedArray, IntPtr pNativeHome) 1536internal static IntPtr ConvertToNative<K, V>([In] ref KeyValuePair<K, V> pair) 1543internal static KeyValuePair<K, V> ConvertToManaged<K, V>(IntPtr pInsp)
system\threading\asynclocal.cs (7)
345private readonly KeyValuePair<IAsyncLocal, object>[] _keyValues; 350_keyValues = new KeyValuePair<IAsyncLocal, object>[count]; 418foreach (KeyValuePair<IAsyncLocal, object> pair in _keyValues) 428foreach (KeyValuePair<IAsyncLocal, object> pair in _keyValues) 456foreach (KeyValuePair<IAsyncLocal, object> pair in this) 477foreach (KeyValuePair<IAsyncLocal, object> pair in this) 490foreach (KeyValuePair<IAsyncLocal, object> pair in this)
system\threading\Tasks\Parallel.cs (4)
3263IEnumerable<KeyValuePair<long, TSource>> orderablePartitionerSource = null; 3333IEnumerator<KeyValuePair<long, TSource>> myPartition = currentWorkerTask.SavedStateFromPreviousReplica as IEnumerator<KeyValuePair<long, TSource>>; 3347KeyValuePair<long, TSource> kvp = myPartition.Current;
PresentationBuildTasks (1)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
149foreach (KeyValuePair<string, string> pair in _namespaceMap)
PresentationCore (43)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (3)
599foreach (KeyValuePair<XmlLanguage, string> localizedFamilyName in compositeFamily.FamilyNames) 631foreach (KeyValuePair<CultureInfo, string> name in font.FaceNames) 654foreach (KeyValuePair<CultureInfo, string> name in font.FaceNames)
Core\CSharp\MS\Internal\FontCache\FontFaceLayoutInfo.cs (7)
786public void Add(KeyValuePair<int, ushort> item) 796public bool Contains(KeyValuePair<int, ushort> item) 801public void CopyTo(KeyValuePair<int, ushort>[] array, int arrayIndex) 821foreach (KeyValuePair<int, ushort> pair in this) 835public bool Remove(KeyValuePair<int, ushort> item) 844public IEnumerator<KeyValuePair<int, ushort>> GetEnumerator() 855return ((IEnumerable<KeyValuePair<int, ushort>>)this).GetEnumerator();
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (1)
56foreach (KeyValuePair<CultureInfo, string> pair in dictionary)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (14)
44public IEnumerator<KeyValuePair<int, CharacterMetrics>> GetEnumerator() 101public void Add(KeyValuePair<int, CharacterMetrics> item) 123public bool Contains(KeyValuePair<int, CharacterMetrics> item) 135public void CopyTo(KeyValuePair<int, CharacterMetrics>[] array, int index) 179public bool Remove(KeyValuePair<int, CharacterMetrics> item) 212foreach (KeyValuePair<int, CharacterMetrics> item in this) 228foreach (KeyValuePair<int, CharacterMetrics> item in this) 489foreach (KeyValuePair<int, CharacterMetrics> pair in this) 500foreach (KeyValuePair<int, CharacterMetrics> pair in this) 548private struct Enumerator : SC.IDictionaryEnumerator, IEnumerator<KeyValuePair<int, CharacterMetrics>> 585KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry(); 591public KeyValuePair<int, CharacterMetrics> Current 599private KeyValuePair<int, CharacterMetrics> GetCurrentEntry() 611KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry();
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (11)
49public IEnumerator<KeyValuePair<XmlLanguage, string>> GetEnumerator() 98public void Add(KeyValuePair<XmlLanguage, string> item) 115public bool Contains(KeyValuePair<XmlLanguage, string> item) 124public void CopyTo(KeyValuePair<XmlLanguage, string>[] array, int index) 145public bool Remove(KeyValuePair<XmlLanguage, string> item) 178foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 194foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 377protected IEnumerator<KeyValuePair<XmlLanguage, string>> _enumerator; 409private KeyValuePair<XmlLanguage, string> GetCurrentEntry() 412KeyValuePair<XmlLanguage, string> entry = _enumerator.Current; 427KeyValuePair<XmlLanguage, string> entry = GetCurrentEntry();
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (7)
520foreach (KeyValuePair<CultureInfo, string> pair in adjustedFaceNames) 2180public void Add(KeyValuePair<ushort, double> item) 2190public bool Contains(KeyValuePair<ushort, double> item) 2195public void CopyTo(KeyValuePair<ushort, double>[] array, int arrayIndex) 2229public bool Remove(KeyValuePair<ushort, double> item) 2238public IEnumerator<KeyValuePair<ushort, double>> GetEnumerator() 2250return ((IEnumerable<KeyValuePair<ushort, double>>)this).GetEnumerator();
PresentationFramework (84)
src\Framework\MS\Internal\Annotations\ObservableDictionary.cs (14)
135public IEnumerator<KeyValuePair<string, string>> GetEnumerator() 137return ((IEnumerable<KeyValuePair<string, string>>)_nameValues).GetEnumerator(); 160void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> pair) 162((ICollection<KeyValuePair<string, string>>)_nameValues).Add(pair); 171bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> pair) 173return ((ICollection<KeyValuePair<string, string>>)_nameValues).Contains(pair); 182bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> pair) 184return ((ICollection<KeyValuePair<string, string>>)_nameValues).Remove(pair); 194void ICollection<KeyValuePair<string,string>>.CopyTo(KeyValuePair<string, string>[] target, int startIndex) 201((ICollection<KeyValuePair<string, string>>)_nameValues).CopyTo(target, startIndex);
src\Framework\MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
185foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations) 215foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations) 231foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations)
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
514foreach (KeyValuePair<string, ElementLocalizability> pair in _classAttributeTable)
src\Framework\MS\Internal\Helper.cs (23)
780List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 802List<KeyValuePair<int, object>> itemValues = EnsureItemValues(owner, item); 810KeyValuePair<int, object> keyValue = new KeyValuePair<int, object>(dpIndex, value); 833List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 854internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item) 859internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item, 860WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage) 863List<KeyValuePair<int, object>> itemValues = null; 874internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item) 876WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = EnsureItemValueStorage(owner); 877List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item, itemValueStorage); 881itemValues = new List<KeyValuePair<int, object>>(3); // So far the only use of this is to store three values. 889internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner) 891WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = ItemValueStorageField.GetValue(owner); 895itemValueStorage = new WeakDictionary<object, List<KeyValuePair<int, object>>>(); 910List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>(); 1056private static void ClearItemValueStorageRecursive(WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage, int[] dpIndices) 1060foreach (List<KeyValuePair<int, object>> itemValuesList in itemValueStorage.Values) 1064KeyValuePair<int, object> itemValue = itemValuesList[i]; 1067ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices); 1551private static readonly UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>> ItemValueStorageField = 1552new UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>>();
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (3)
95foreach ( KeyValuePair<InkCanvasClipboardFormat, ClipboardData> pair in _preferredClipboardData ) 205foreach ( KeyValuePair<InkCanvasClipboardFormat, ClipboardData> pair in _preferredClipboardData ) 275foreach ( KeyValuePair<InkCanvasClipboardFormat, ClipboardData> pair in _preferredClipboardData )
src\Framework\MS\Internal\WeakDictionary.cs (7)
269public void Add(KeyValuePair<TKey, TValue> item) 279public bool Contains(KeyValuePair<TKey, TValue> item) 294public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) 306foreach (KeyValuePair<TKey, TValue> item in this) 316foreach (KeyValuePair<TKey, TValue> item in this) 332public bool Remove(KeyValuePair<TKey, TValue> item) 345public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
src\Framework\System\Windows\Annotations\LocatorPart.cs (4)
117foreach (KeyValuePair<string, string> k_v in _nameValues) 152foreach (KeyValuePair<string, string> k_v in _nameValues) 408foreach (KeyValuePair<string, string> k_v in ((ICollection<KeyValuePair<string, string>>)this.NameValuePairs))
src\Framework\System\Windows\Annotations\LocatorPartList.cs (1)
204foreach (KeyValuePair<string, string> pair in part.NameValuePairs)
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
825foreach (KeyValuePair<Uri, IList<Uri>> item in knownNamespaces) 881foreach (KeyValuePair<Uri, IList<Uri>> item in knownNamespaces)
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (6)
619KeyValuePair<object, T> pair = _list[i]; 653_list = new List<KeyValuePair<object, T>>(); 680KeyValuePair<object, T> pair = _list[i]; 705foreach(KeyValuePair<object,T> dictionaryEntry in _hashtable) 729foreach(KeyValuePair<object, T> keyValuePair in _list) 762private List<KeyValuePair<object, T>> _list = null;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6843foreach (KeyValuePair<DataGridColumn, CellAutomationValueHolder> kvp in _editingCellAutomationValueHolders)
src\Framework\System\Windows\Controls\Grid.cs (2)
2886private static int CompareRoundingErrors(KeyValuePair<int, double> x, KeyValuePair<int, double> y)
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
933IEnumerator<KeyValuePair<Object, GetPageAsyncRequest>> ienum = _asyncOps.GetEnumerator();
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
1265IEnumerator<KeyValuePair<Object, GetPageAsyncRequest>> ienum = _asyncOps.GetEnumerator();
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
603foreach (KeyValuePair<string, List<string>> items in _customDictionaryFiles)
src\Framework\System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
68foreach (KeyValuePair<string, string> pair in _namespaces)
src\Framework\System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (2)
324foreach(KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource> pair in _dictionary) 423foreach (KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource> pair in _dictionary)
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1447foreach (KeyValuePair<string, string> mapping in _uriToPrefix)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
336foreach (KeyValuePair<string, string> kvp in dict)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (4)
24using HANDLE_MESSAGE = System.Collections.Generic.KeyValuePair<Standard.WM, Standard.MessageHandler>; 35private readonly List<HANDLE_MESSAGE> _messageTable; 89_messageTable = new List<HANDLE_MESSAGE> 621foreach (var handlePair in _messageTable)
src\Framework\System\Windows\SystemResources.cs (2)
215foreach (var dictionary in _dictionaries) 246foreach (var dictionary in _dictionaries)
src\Framework\System\Windows\VisualStateManager.cs (3)
433foreach (KeyValuePair<TimelineDataToken, Timeline> pair in transitionAnimations) 440foreach (KeyValuePair<TimelineDataToken, Timeline> pair in newStateAnimations) 459foreach (KeyValuePair<TimelineDataToken, Timeline> pair in currentAnimations)
System (70)
compmod\system\codedom\compiler\CodeDomConfigurationHandler.cs (1)
308foreach (KeyValuePair<string, string> kvp in provOptions) {
compmod\system\collections\generic\debugview.cs (3)
92public KeyValuePair<K, V>[] Items { 94KeyValuePair<K, V>[] items = new KeyValuePair<K, V>[dict.Count];
compmod\system\collections\generic\sorteddictionary.cs (31)
23private TreeSet<KeyValuePair<TKey, TValue>> _set; 36_set = new TreeSet<KeyValuePair<TKey, TValue>>(new KeyValuePairComparer(comparer)); 38foreach(KeyValuePair<TKey, TValue> pair in dictionary) { 44_set = new TreeSet<KeyValuePair<TKey, TValue>>(new KeyValuePairComparer(comparer)); 47void ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue> keyValuePair) { 51bool ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue> keyValuePair) { 52TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(keyValuePair); 65bool ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue> keyValuePair) { 66TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(keyValuePair); 78bool ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly { 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))); 184_set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node) { 195_set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node) { 206public void CopyTo(KeyValuePair<TKey, TValue>[] array, int index) { 214IEnumerator<KeyValuePair<TKey,TValue>> IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator() { 231TreeSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue))); 356public struct Enumerator : IEnumerator<KeyValuePair<TKey,TValue>>, IDictionaryEnumerator { 357private TreeSet<KeyValuePair<TKey, TValue>>.Enumerator treeEnum; 376public KeyValuePair<TKey, TValue> Current { 483dictionary._set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node){ array[index++] = node.Item.Key; return true;}); 518dictionary._set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node){ objects[index++] = node.Item.Key; return true;}); 638dictionary._set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node){ array[index++] = node.Item.Value; return true;}); 673dictionary._set.InOrderTreeWalk( delegate(TreeSet<KeyValuePair<TKey, TValue>>.Node node){ objects[index++] = node.Item.Value; return true;}); 755internal class KeyValuePairComparer : Comparer<KeyValuePair<TKey, TValue>> { 766public override int Compare( KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y) {
compmod\system\collections\generic\sortedlist.cs (17)
185void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) { 189bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair) { 197bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) { 345bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { 406void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) { 420KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(keys[i],values[i]); 446KeyValuePair<TKey, TValue>[] keyValuePairArray = array as KeyValuePair<TKey, TValue>[]; 494public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() { 498IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() 686private struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, System.Collections.IDictionaryEnumerator 751public KeyValuePair<TKey, TValue> Current {
compmod\system\collections\specialized\stringdictionary.cs (11)
305void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> item) { 309bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> item) { 314void ICollection<KeyValuePair<string, string>>.CopyTo(KeyValuePair<string, string>[] array, int arrayIndex) { 329bool ICollection<KeyValuePair<string,string>>.IsReadOnly { 339bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> item) { 342ICollection<KeyValuePair<string, string>> iCollection = this; 359public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
compmod\system\componentmodel\ComponentResourceManager.cs (1)
119foreach(KeyValuePair<string, object> kvp in resources) {
net\System\_IPv6Address.cs (2)
56KeyValuePair<int, int> range = FindCompressionRange(numbers); 94private unsafe static KeyValuePair<int, int> FindCompressionRange(ushort* numbers) {
net\System\Net\_AutoWebProxyScriptHelper.cs (3)
645 Dictionary<IntPtr, KeyValuePair<SocketAddress, string> > UnmanagedToManagedMapping = new Dictionary<IntPtr, KeyValuePair<SocketAddress, string>>(); 691 KeyValuePair<SocketAddress, string> kv = UnmanagedToManagedMapping[lpSockAddr];
net\System\Net\Configuration\UriSectionReader.cs (1)
37foreach (KeyValuePair<string, SchemeSettingInternal> schemeSetting in parentData.SchemeSettings)
System.Activities (103)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
119foreach (KeyValuePair<HashSet<Assembly>, HostedCompilerWrapper> kvp in HostedCompilerCache)
System\Activities\Activity.cs (12)
1715IEnumerable<KeyValuePair<string, Argument>> argumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, Argument>>; 1721IEnumerable<KeyValuePair<string, InArgument>> inArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, InArgument>>; 1727IEnumerable<KeyValuePair<string, OutArgument>> outArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, OutArgument>>; 1733IEnumerable<KeyValuePair<string, InOutArgument>> inOutArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, InOutArgument>>; 1742protected static IList<RuntimeArgument> GetRuntimeArguments<T>(IEnumerable<KeyValuePair<string, T>> argumentDictionary, string propertyName) where T : Argument 1746foreach (KeyValuePair<string, T> pair in argumentDictionary) 1774IEnumerable<KeyValuePair<string, T>> argumentDictionary = propertyValue as IEnumerable<KeyValuePair<string, T>>;
System\Activities\Debugger\DebugManager.cs (8)
145Queue<KeyValuePair<Activity, Activity>> pairsRemaining = new Queue<KeyValuePair<Activity, Activity>>(); 149KeyValuePair<Activity, Activity> currentPair; 215Queue<KeyValuePair<Activity, string>> pairsRemaining = new Queue<KeyValuePair<Activity, string>>(); 219KeyValuePair<Activity, string> pair = new KeyValuePair<Activity, string>(activity, string.Empty); 444foreach (KeyValuePair<int, Stack<Activity>> entry in this.runningThreads) 456foreach (KeyValuePair<int, Stack<Activity>> entry in this.runningThreads)
System\Activities\Debugger\InstrumentationTracker.cs (1)
99foreach (KeyValuePair<Activity, string> entry in this.UninstrumentedSubRoots)
System\Activities\Debugger\SourceLocationProvider.cs (3)
296Queue<KeyValuePair<Activity, Activity>> pairsRemaining = new Queue<KeyValuePair<Activity, Activity>>(); 299KeyValuePair<Activity, Activity> currentPair;
System\Activities\Debugger\StateManager.cs (1)
506foreach (KeyValuePair<string, byte[]> kvpair in checksumCache)
System\Activities\DurableInstancing\LoadWorkflowByInstanceKeyCommand.cs (1)
90foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> key in this.keysToAssociate)
System\Activities\DurableInstancing\SaveWorkflowCommand.cs (2)
142foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> key in this.keysToAssociate) 150foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> key in this.keyMetadataChanges)
System\Activities\DynamicUpdate\DynamicUpdateMapEntry.cs (1)
234foreach (KeyValuePair<string, object> pair in second)
System\Activities\DynamicUpdate\DynamicUpdateServices.cs (1)
84foreach (KeyValuePair<object, DynamicUpdateMapItem> objectInfo in mapItems)
System\Activities\ExecutionProperties.cs (6)
16public sealed class ExecutionProperties : IEnumerable<KeyValuePair<string, object>> 18static IEnumerable<KeyValuePair<string, object>> emptyKeyValues; 45static IEnumerable<KeyValuePair<string, object>> EmptyKeyValues 51emptyKeyValues = new KeyValuePair<string, object>[0]; 203public IEnumerator<KeyValuePair<string, object>> GetEnumerator() 213IEnumerable<KeyValuePair<string, object>> GetKeyValues()
System\Activities\Hosting\SymbolResolver.cs (9)
113public void Add(KeyValuePair<string, object> item) 123public bool Contains(KeyValuePair<string, object> item) 141public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex) 163foreach (KeyValuePair<string, ExternalLocationReference> pair in this.symbols) 172public IEnumerator<KeyValuePair<string, object>> GetEnumerator() 174foreach (KeyValuePair<string, ExternalLocationReference> pair in this.symbols) 180internal IEnumerable<KeyValuePair<string, LocationReference>> GetLocationReferenceEnumerator() 182foreach (KeyValuePair<string, ExternalLocationReference> pair in this.symbols) 199public bool Remove(KeyValuePair<string, object> item)
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (8)
14List<KeyValuePair<WorkflowInstanceExtensionProvider, object>> instanceExtensions; 69foreach (KeyValuePair<Type, WorkflowInstanceExtensionProvider> keyedActivityExtensionProvider in activityExtensionProviders) 135this.instanceExtensions = new List<KeyValuePair<WorkflowInstanceExtensionProvider, object>>(extensionProviderCount); 139List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> extensionProviders = extensionManager.ExtensionProviders; 142KeyValuePair<Type, WorkflowInstanceExtensionProvider> extensionProvider = extensionProviders[i]; 238KeyValuePair<WorkflowInstanceExtensionProvider, object> keyedExtension = this.instanceExtensions[i]; 305KeyValuePair<WorkflowInstanceExtensionProvider, object> keyedExtension = this.instanceExtensions[i]; 396KeyValuePair<WorkflowInstanceExtensionProvider, object> keyedExtension = this.instanceExtensions[i];
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (4)
18internal static List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> EmptyExtensionProviders = new List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>>(0); 52internal List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> ExtensionProviders 139this.ExtensionProviders = new List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>>();
System\Activities\HybridDictionary.cs (6)
192public void Add(KeyValuePair<TKey, TValue> item) 204public bool Contains(KeyValuePair<TKey, TValue> item) 218public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) 230public bool Remove(KeyValuePair<TKey, TValue> item) 235public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() 243foreach (KeyValuePair<TKey, TValue> kvp in this.dictionary)
System\Activities\Runtime\ActivityInstanceMap.cs (1)
45foreach (KeyValuePair<Activity, InstanceList> entry in this.instanceMapping)
System\Activities\Runtime\BookmarkManager.cs (1)
251foreach (KeyValuePair<Bookmark, BookmarkCallbackWrapper> bookmarkEntry in this.bookmarks)
System\Activities\Runtime\BookmarkScopeManager.cs (1)
533foreach (KeyValuePair<BookmarkScope, BookmarkManager> scopeBookmarks in this.bookmarkManagers)
System\Activities\Runtime\ExecutionPropertyManager.cs (2)
160foreach (KeyValuePair<string, ExecutionProperty> item in properties) 169public IEnumerable<KeyValuePair<string, object>> GetFlattenedProperties(IdSpace currentIdSpace)
System\Activities\Statements\FlowSwitch.cs (1)
74foreach (KeyValuePair<T, FlowNode> item in this.Cases)
System\Activities\Statements\InvokeDelegate.cs (3)
60foreach (KeyValuePair<string, Argument> entry in this.DelegateArguments) 139foreach (KeyValuePair<string, Argument> entry in DelegateArguments) 155foreach (KeyValuePair<string, object> entry in outArguments)
System\Activities\Statements\StateMachine.cs (1)
394foreach (KeyValuePair<Activity, List<Transition>> unconditionalTransitions in unconditionalTransitionMapping)
System\Activities\Tracking\CustomTrackingRecord.cs (1)
51foreach (KeyValuePair<string, object> item in record.data)
System\Activities\Tracking\EtwTrackingParticipant.cs (2)
162foreach (KeyValuePair<string, object> item in data) 238foreach (KeyValuePair<string, string> item in data)
System\Activities\Validation\ValidationHelper.cs (3)
42foreach (KeyValuePair<string, List<RuntimeArgument>> entry in overloadGroups) 191foreach (KeyValuePair<string, List<string>> entry in equivalenceInfo.EquivalentGroupsDictionary) 212foreach (KeyValuePair<string, List<string>> entry in equivalenceInfo.SupersetOfGroupsDictionary)
System\Activities\WorkflowApplication.cs (5)
337foreach (KeyValuePair<XName, object> pair in writeOnlyValues) 5845foreach (KeyValuePair<string, LocationInfo> mappedVariable in instance.Controller.GetMappedVariables()) 5874foreach (KeyValuePair<string, object> output in outputs) 5922foreach (KeyValuePair<XName, InstanceValue> value in instance) 5930foreach (KeyValuePair<XName, InstanceValue> value in instanceMetadata)
System\Activities\WorkflowDataContext.cs (1)
163foreach (KeyValuePair<Location, PropertyDescriptorImpl> pair in this.locationMapping)
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (8)
462List<KeyValuePair<string, XamlNodeQueue>> defaultValueNodes; 513public void SetProperties(XamlNodeQueue propertyNodes, List<KeyValuePair<string, XamlNodeQueue>> defaultValueNodes) 554foreach (KeyValuePair<string, XamlNodeQueue> defaultValueNode in this.defaultValueNodes) 727List<KeyValuePair<string, XamlNodeQueue>> defaultValueNodes; 802this.defaultValueNodes = new List<KeyValuePair<string, XamlNodeQueue>>(); 1127public List<KeyValuePair<XamlMember, XamlNodeQueue>> Members { get; set; } 1152this.Members = new List<KeyValuePair<XamlMember, XamlNodeQueue>>(); 1166foreach (KeyValuePair<XamlMember, XamlNodeQueue> member in Members)
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (1)
948foreach (KeyValuePair<string, ValueHolder> propertyNameAndValue in this.valueHolders)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (8)
433foreach (KeyValuePair<string, MemberData> property in descriptor.Properties) 440foreach (KeyValuePair<string, MemberData> field in descriptor.Fields) 615foreach (KeyValuePair<string, MemberData> field in contextDescriptor.Fields) 622foreach (KeyValuePair<string, MemberData> property in contextDescriptor.Properties) 1675foreach (KeyValuePair<string, MemberData> valueField in descriptor.Fields) 1713foreach (KeyValuePair<string, MemberData> valueField in descriptor.Fields) 2258foreach (KeyValuePair<string, MemberData> kvp in descriptor.Properties) 2263foreach (KeyValuePair<string, MemberData> kvp in descriptor.Fields)
System.Activities.Core.Presentation (17)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (5)
475foreach (KeyValuePair<string, object> viewStatePair in viewState) 488foreach (KeyValuePair<string, object> kvPair in modifiedValues) 539KeyValuePair<AttachableMemberIdentifier, object>[] attachedProperties = new KeyValuePair<AttachableMemberIdentifier, object>[AttachablePropertyServices.GetAttachedPropertyCount(flowElement)]; 541foreach (KeyValuePair<AttachableMemberIdentifier, object> attachedProperty in attachedProperties)
System\ServiceModel\Activities\Presentation\Converters\ReceiveParametersContentSearchableStringConverter.cs (1)
20foreach (KeyValuePair<string, OutArgument> param in content.Parameters)
System\ServiceModel\Activities\Presentation\Converters\SendParametersContentSearchableStringConverter.cs (1)
20foreach (KeyValuePair<string, InArgument> param in content.Parameters)
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (4)
29typeof(IList<KeyValuePair<string, Type>>), 59public IList<KeyValuePair<string, Type>> TypeCollection 61get { return (IList<KeyValuePair<string, Type>>)GetValue(TypeCollectionProperty); } 221foreach (var entry in this.TypeCollection)
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (6)
75public IList<KeyValuePair<string, Type>> ActivityParameters 180IList<KeyValuePair<string, Type>> GetActivityParameters() 182var result = new List<KeyValuePair<string, Type>>(); 199foreach (var entry in source) 207foreach (var entry in source) 266public MessageQueryEntry(KeyValuePair<ModelItem, ModelItem> entry)
System.Activities.DurableInstancing (46)
System\Activities\DurableInstancing\BinaryHeap.cs (19)
15readonly KeyValuePair<TKey, TValue> EmptyItem = new KeyValuePair<TKey, TValue>(); 16KeyValuePair<TKey, TValue>[] items; 27this.items = new KeyValuePair<TKey, TValue>[capacity]; 43this.items = new KeyValuePair<TKey, TValue>[defaultCapacity]; 59public KeyValuePair<TKey, TValue> Dequeue() 64KeyValuePair<TKey, TValue> Dequeue(bool shrink) 68KeyValuePair<TKey, TValue> result = items[0]; 93public KeyValuePair<TKey, TValue> Peek() 102public ICollection<KeyValuePair<TKey, TValue>> RemoveAll(Predicate<KeyValuePair<TKey, TValue>> func) 104ICollection<KeyValuePair<TKey, TValue>> result = new List<KeyValuePair<TKey, TValue>>(); 152public ICollection<KeyValuePair<TKey, TValue>> TakeWhile(Predicate<TKey> func) 154ICollection<KeyValuePair<TKey, TValue>> result = new List<KeyValuePair<TKey, TValue>>(); 171KeyValuePair<TKey, TValue>[] temp = new KeyValuePair<TKey, TValue>[newSize]; 210KeyValuePair<TKey, TValue> temp = this.items[currentPosition]; 231KeyValuePair<TKey, TValue> temp = this.items[startIndex];
System\Activities\DurableInstancing\CorrelationKey.cs (1)
89foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyValuePair in keys)
System\Activities\DurableInstancing\DefaultObjectSerializer.cs (3)
70KeyValuePair<XName, object> property = (KeyValuePair<XName, object>) this.serializer.ReadObject(dictionaryReader); 94foreach (KeyValuePair<XName, object> property in propertyBag)
System\Activities\DurableInstancing\LoadRetryHandler.cs (4)
47ICollection<KeyValuePair<DateTime, LoadRetryAsyncResult>> result; 54foreach (KeyValuePair<DateTime, LoadRetryAsyncResult> value in result) 71ICollection<KeyValuePair<DateTime, LoadRetryAsyncResult>> retryList; 106foreach (KeyValuePair<DateTime, LoadRetryAsyncResult> retry in retryList)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (4)
142foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyEntry in loadByKeycommand.InstanceKeysToAssociate) 156foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyEntry in loadByKeycommand.InstanceKeysToAssociate) 162foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 206foreach (KeyValuePair<XName, InstanceValue> metadataChange in metadataChangeSet)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (7)
165foreach (KeyValuePair<XName, InstanceValue> property in saveWorkflowCommand.InstanceMetadataChanges) 321foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyEntry in saveWorkflowCommand.InstanceKeysToAssociate) 329foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 358foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyEntry in saveWorkflowCommand.InstanceKeyMetadataChanges) 362foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 371foreach (KeyValuePair<Guid, InstanceKeyView> instanceKeys in instanceView.InstanceKeys) 536foreach (KeyValuePair<string, Tuple<List<XName>, List<XName>>> promotion in base.Store.Promotions)
System\Activities\DurableInstancing\SerializationUtilities.cs (6)
101foreach (KeyValuePair<XName, object> property in propertyBag) 118foreach (KeyValuePair<XName, InstanceValue> metadataProperty in context.InstanceView.InstanceMetadata) 127foreach (KeyValuePair<XName, InstanceValue> metadataChange in saveWorkflowCommand.InstanceMetadataChanges) 168foreach (KeyValuePair<XName, InstanceValue> property in properties) 208foreach (KeyValuePair<XName, InstanceValue> property in metadataProperties) 248foreach (KeyValuePair<XName, object> property in propertyBag)
System\Activities\DurableInstancing\StoreUtilities.cs (1)
209foreach (KeyValuePair<XName, object> property in propertyBag)
System\Activities\DurableInstancing\XmlPropertyBag.cs (1)
57foreach (KeyValuePair<XName, object> property in this)
System.Activities.Presentation (85)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
595foreach (KeyValuePair<string, XamlNodeList> entry in viewStateInfo)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (4)
304foreach (KeyValuePair<int, object> sourceLocationObjectEntry in sourceLocationObjectSequence) 526private KeyValuePair<string, SourceLocation> TransformDynamicActivityProperty( 625KeyValuePair<string, SourceLocation> nameSourceLocation = this.TransformDynamicActivityProperty(reader.ReadSubtree(), objectWriter, sourceTextScanner); 652foreach (KeyValuePair<string, SourceLocation> propertyValueLocation in propertyValueLocationMapping)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (4)
135foreach (KeyValuePair<string, AttributeList> kv in newMd.MemberAttributes) 161foreach (KeyValuePair<Type, TypeMetadata> kv in table._metadata) 517foreach (KeyValuePair<Type, TypeMetadata> kv in _metadata) 534foreach (KeyValuePair<string, AttributeList> kvMember in kv.Value.MemberAttributes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
193foreach (KeyValuePair<string, IList<ModelProperty>> pair in counter)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
787foreach (KeyValuePair<Type, string> item in _activeCategoryEditors)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (1)
21foreach (KeyValuePair<string, object> keyValuePair in fontAndColorData)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
122foreach (KeyValuePair<string, string> pair in _persistenceIdToManagerTypeNameMap)
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (19)
151protected virtual void CopyTo(KeyValuePair<ModelItem, ModelItem>[] array, int arrayIndex) { 152foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 160protected virtual bool Contains(KeyValuePair<ModelItem, ModelItem> item) { 200public abstract IEnumerator<KeyValuePair<ModelItem, ModelItem>> GetEnumerator(); 301foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 323foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 355KeyValuePair<ModelItem, ModelItem>[] typedArray = new KeyValuePair<ModelItem, ModelItem>[len]; 394foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 403void ICollection<KeyValuePair<ModelItem, ModelItem>>.Add(KeyValuePair<ModelItem, ModelItem> item) { 407bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains(KeyValuePair<ModelItem, ModelItem> item) { 411void ICollection<KeyValuePair<ModelItem, ModelItem>>.CopyTo(KeyValuePair<ModelItem, ModelItem>[] array, int arrayIndex) { 421bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Remove(KeyValuePair<ModelItem, ModelItem> item) { 438private IEnumerator<KeyValuePair<ModelItem, ModelItem>> _real; 440internal DictionaryEnumerator(IEnumerator<KeyValuePair<ModelItem, ModelItem>> real) {
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (9)
538foreach (KeyValuePair<ModelItem, BreakpointTypes> entry in this.breakpoints) 549foreach (KeyValuePair<SourceLocation, BreakpointTypes> entry in this.unmappedBreakpoints) 626foreach (KeyValuePair<object, SourceLocation> kvpEntry in this.instanceToSourceLocationMapping) 641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 650foreach (KeyValuePair<object, SourceLocation> kvp in newSourceLocationMapping) 661foreach (KeyValuePair<object, SourceLocation> unresolvedEntry in unresolvedEntries) 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList(); 733foreach (KeyValuePair<ModelItem, SourceLocation> resolvedEntry in resolvedEntries) 841foreach (KeyValuePair<object, SourceLocation> kvp in this.instanceToSourceLocationMapping)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
223foreach (var entry in this.validationErrors)
System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
23foreach (KeyValuePair<TKey, TValue> kvpair in this.dictionary)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
622foreach (KeyValuePair<ICompositeView, List<ModelItem>> pair in viewItemListDictionary)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
189foreach (KeyValuePair<Assign, Type> kvp in assignLValueTypes)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
495public override IEnumerator<KeyValuePair<ModelItem, ModelItem>> GetEnumerator() 810IList removed = this.modelItems.ToList<KeyValuePair<ModelItem, ModelItem>>(); 1040Type keyValuePairType = typeof(KeyValuePair<object, object>); 1133type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1144type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (4)
464foreach (KeyValuePair<ModelItem, ModelItem> kvp in dictionary) 609foreach (KeyValuePair<string, ModelItem> kvp in removedModelItems) 1000foreach (KeyValuePair<string, ModelItem> kvp in ((IModelTreeItem)vertex).ModelPropertyStore) 1269this.kvpairType = typeof(KeyValuePair<,>).MakeGenericType(this.GenericArguments);
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (8)
146public void Add(KeyValuePair<K, V> item) 159public bool Contains(KeyValuePair<K, V> item) 177public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex) 181foreach (KeyValuePair<WeakKey, V> item in _internalDictionary) 183KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.Target, item.Value); 190public bool Remove(KeyValuePair<K, V> item) 203public IEnumerator<KeyValuePair<K, V>> GetEnumerator() 208foreach (KeyValuePair<WeakKey, V> item in _internalDictionary)
System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
155foreach (KeyValuePair<string, List<string>> entries in visualBasicImports)
System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
127foreach (KeyValuePair<Guid, object> kvp in this.ObjectReferenceIds)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1764IDictionary<KeyValuePair<string, bool>, DrawingBrush> glyphCache = new Dictionary<KeyValuePair<string, bool>, DrawingBrush>();
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
62KeyValuePair<FrameworkElement, Point> selectedChild;
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
281IEnumerable<KeyValuePair<string, object>> IXamlNameResolver.GetAllNamesAndValuesInScope()
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
195foreach (KeyValuePair<string, string> item in itemStatus)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemKeyValuePairModelItemViewModel.cs (2)
15internal sealed class TreeViewItemKeyValuePairModelItemViewModel : TreeViewItemViewModel<KeyValuePair<ModelItem, ModelItem>> 17public TreeViewItemKeyValuePairModelItemViewModel(TreeViewItemViewModel parent, KeyValuePair<ModelItem, ModelItem> value) : base(parent)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType())) 249viewModel = new TreeViewItemKeyValuePairModelItemViewModel(parent, (KeyValuePair<ModelItem, ModelItem>)value); 303foreach (var pair in dictionary)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (2)
86foreach (KeyValuePair<ModelItem, ModelItem> child in dictionary) 166foreach (KeyValuePair<ModelItem, int> kvp in nonSources.Where((kvp) => 0 < kvp.Value))
System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (3)
94foreach (KeyValuePair<string, string> kvp in mergedHintTextMap) 153foreach (KeyValuePair<TKey, TValue> kvp in lhs) 158foreach (KeyValuePair<TKey, TValue> kvp in rhs)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
972foreach (KeyValuePair<ICompositeView, List<ModelItem>> pair in containerMovedModelItemList)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
1136foreach (KeyValuePair<string, string> ns in Namespaces.FlattenNamespaces()) 1227public IEnumerable<KeyValuePair<string, string>> FlattenNamespaces() 1237foreach (KeyValuePair<string, string> pair in current)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (2)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem)); 225foreach (KeyValuePair<object, SourceLocation> entry in deserializedObjectToSourceLocationMapping)
System.AddIn (6)
System\Addin\Hosting\AddInToken.cs (1)
96foreach (KeyValuePair<String, String> pair in pairs)
System\Addin\Hosting\ReadOnlyDictionary.cs (5)
78public void Add(KeyValuePair<TKey, TValue> pair) 88public bool Contains(KeyValuePair<TKey, TValue> keyValuePair) 93public void CopyTo(KeyValuePair<TKey, TValue>[] array, Int32 arrayIndex) 98public bool Remove(KeyValuePair<TKey, TValue> keyValuePair) 103public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
System.ComponentModel.DataAnnotations (5)
DataAnnotations\Validator.cs (5)
388ICollection<KeyValuePair<ValidationContext, object>> properties = GetPropertyValues(instance, validationContext); 391foreach (KeyValuePair<ValidationContext, object> property in properties) { 427private static ICollection<KeyValuePair<ValidationContext, object>> GetPropertyValues(object instance, ValidationContext validationContext) { 444List<KeyValuePair<ValidationContext, object>> items = new List<KeyValuePair<ValidationContext, object>>(properties.Count);
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
483foreach(KeyValuePair<string, List<SectionInput>> keyValuePair in indirectLocationInputs) {
System.Core (33)
Microsoft\Scripting\Actions\ExpandoObject.cs (15)
592int ICollection<KeyValuePair<string, object>>.Count { 598bool ICollection<KeyValuePair<string, object>>.IsReadOnly { 602void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item) { 606void ICollection<KeyValuePair<string, object>>.Clear() { 626bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item) { 635void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex) { 641foreach (KeyValuePair<string, object> item in this) { 647bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item) { 654IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() { 666private IEnumerator<KeyValuePair<string, object>> GetExpandoEnumerator(ExpandoData data, int version) {
Microsoft\Scripting\Compiler\BoundConstants.cs (2)
131foreach (var reference in _references) { 149foreach (var reference in _references) {
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
353foreach (var refCount in ReferenceCount) {
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
140foreach (KeyValuePair<ProviderMetadataId, CacheItem> kvp in cache) {
System\Diagnostics\PerformanceData\CounterSet.cs (1)
218foreach (KeyValuePair<Int32, CounterType> CounterDef in m_idToCounter) {
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
132foreach (KeyValuePair<Int32, CounterType> CounterDef in m_instance.m_counterSet.m_idToCounter) {
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
236private IEnumerator<KeyValuePair<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>> m_outputEnumerator; // The enumerator output elements + order keys.
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
309private IEnumerator<KeyValuePair<Wrapper<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>>> m_outputEnumerator; // Enumerator over the output of the union.
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (5)
154IList<IEnumerator<KeyValuePair<long, TElement>>> partitionerPartitions = 169IEnumerator<KeyValuePair<long, TElement>> partition = partitionerPartitions[i]; 216private IEnumerator<KeyValuePair<long, TElement>> m_sourceEnumerator; 218internal OrderablePartitionerEnumerator(IEnumerator<KeyValuePair<long, TElement>> sourceEnumerator) 227KeyValuePair<long, TElement> current = m_sourceEnumerator.Current;
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (2)
203private IEnumerator<KeyValuePair<Wrapper<TInputOutput>, TKey>> m_hashLookupEnumerator; // Enumerates over m_hashLookup. 266KeyValuePair<Wrapper<TInputOutput>, TKey> currentPair = m_hashLookupEnumerator.Current;
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (2)
695private KeyValuePair<Wrapper<TGroupKey>, ListChunk<TElement>> m_keyValues; // A key value pair. 701internal GroupByGrouping(KeyValuePair<Wrapper<TGroupKey>, ListChunk<TElement>> keyValues)
System\Linq\Parallel\Utils\HashLookup.cs (1)
178internal KeyValuePair<TKey, TValue> this[int index]
System.Data (113)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
595foreach (KeyValuePair<string, XamlNodeList> entry in viewStateInfo)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (4)
304foreach (KeyValuePair<int, object> sourceLocationObjectEntry in sourceLocationObjectSequence) 526private KeyValuePair<string, SourceLocation> TransformDynamicActivityProperty( 625KeyValuePair<string, SourceLocation> nameSourceLocation = this.TransformDynamicActivityProperty(reader.ReadSubtree(), objectWriter, sourceTextScanner); 652foreach (KeyValuePair<string, SourceLocation> propertyValueLocation in propertyValueLocationMapping)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (4)
135foreach (KeyValuePair<string, AttributeList> kv in newMd.MemberAttributes) 161foreach (KeyValuePair<Type, TypeMetadata> kv in table._metadata) 517foreach (KeyValuePair<Type, TypeMetadata> kv in _metadata) 534foreach (KeyValuePair<string, AttributeList> kvMember in kv.Value.MemberAttributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
193foreach (KeyValuePair<string, IList<ModelProperty>> pair in counter)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
787foreach (KeyValuePair<Type, string> item in _activeCategoryEditors)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (1)
21foreach (KeyValuePair<string, object> keyValuePair in fontAndColorData)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
122foreach (KeyValuePair<string, string> pair in _persistenceIdToManagerTypeNameMap)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (19)
151protected virtual void CopyTo(KeyValuePair<ModelItem, ModelItem>[] array, int arrayIndex) { 152foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 160protected virtual bool Contains(KeyValuePair<ModelItem, ModelItem> item) { 200public abstract IEnumerator<KeyValuePair<ModelItem, ModelItem>> GetEnumerator(); 301foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 323foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 355KeyValuePair<ModelItem, ModelItem>[] typedArray = new KeyValuePair<ModelItem, ModelItem>[len]; 394foreach (KeyValuePair<ModelItem, ModelItem> kv in this) { 403void ICollection<KeyValuePair<ModelItem, ModelItem>>.Add(KeyValuePair<ModelItem, ModelItem> item) { 407bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains(KeyValuePair<ModelItem, ModelItem> item) { 411void ICollection<KeyValuePair<ModelItem, ModelItem>>.CopyTo(KeyValuePair<ModelItem, ModelItem>[] array, int arrayIndex) { 421bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Remove(KeyValuePair<ModelItem, ModelItem> item) { 438private IEnumerator<KeyValuePair<ModelItem, ModelItem>> _real; 440internal DictionaryEnumerator(IEnumerator<KeyValuePair<ModelItem, ModelItem>> real) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (9)
538foreach (KeyValuePair<ModelItem, BreakpointTypes> entry in this.breakpoints) 549foreach (KeyValuePair<SourceLocation, BreakpointTypes> entry in this.unmappedBreakpoints) 626foreach (KeyValuePair<object, SourceLocation> kvpEntry in this.instanceToSourceLocationMapping) 641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 650foreach (KeyValuePair<object, SourceLocation> kvp in newSourceLocationMapping) 661foreach (KeyValuePair<object, SourceLocation> unresolvedEntry in unresolvedEntries) 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList(); 733foreach (KeyValuePair<ModelItem, SourceLocation> resolvedEntry in resolvedEntries) 841foreach (KeyValuePair<object, SourceLocation> kvp in this.instanceToSourceLocationMapping)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
223foreach (var entry in this.validationErrors)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
23foreach (KeyValuePair<TKey, TValue> kvpair in this.dictionary)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
622foreach (KeyValuePair<ICompositeView, List<ModelItem>> pair in viewItemListDictionary)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
189foreach (KeyValuePair<Assign, Type> kvp in assignLValueTypes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
495public override IEnumerator<KeyValuePair<ModelItem, ModelItem>> GetEnumerator() 810IList removed = this.modelItems.ToList<KeyValuePair<ModelItem, ModelItem>>(); 1040Type keyValuePairType = typeof(KeyValuePair<object, object>); 1133type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1144type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (4)
464foreach (KeyValuePair<ModelItem, ModelItem> kvp in dictionary) 609foreach (KeyValuePair<string, ModelItem> kvp in removedModelItems) 1000foreach (KeyValuePair<string, ModelItem> kvp in ((IModelTreeItem)vertex).ModelPropertyStore) 1269this.kvpairType = typeof(KeyValuePair<,>).MakeGenericType(this.GenericArguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (8)
146public void Add(KeyValuePair<K, V> item) 159public bool Contains(KeyValuePair<K, V> item) 177public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex) 181foreach (KeyValuePair<WeakKey, V> item in _internalDictionary) 183KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.Target, item.Value); 190public bool Remove(KeyValuePair<K, V> item) 203public IEnumerator<KeyValuePair<K, V>> GetEnumerator() 208foreach (KeyValuePair<WeakKey, V> item in _internalDictionary)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
155foreach (KeyValuePair<string, List<string>> entries in visualBasicImports)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
127foreach (KeyValuePair<Guid, object> kvp in this.ObjectReferenceIds)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1764IDictionary<KeyValuePair<string, bool>, DrawingBrush> glyphCache = new Dictionary<KeyValuePair<string, bool>, DrawingBrush>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
62KeyValuePair<FrameworkElement, Point> selectedChild;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
281IEnumerable<KeyValuePair<string, object>> IXamlNameResolver.GetAllNamesAndValuesInScope()
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
195foreach (KeyValuePair<string, string> item in itemStatus)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemKeyValuePairModelItemViewModel.cs (2)
15internal sealed class TreeViewItemKeyValuePairModelItemViewModel : TreeViewItemViewModel<KeyValuePair<ModelItem, ModelItem>> 17public TreeViewItemKeyValuePairModelItemViewModel(TreeViewItemViewModel parent, KeyValuePair<ModelItem, ModelItem> value) : base(parent)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType())) 249viewModel = new TreeViewItemKeyValuePairModelItemViewModel(parent, (KeyValuePair<ModelItem, ModelItem>)value); 303foreach (var pair in dictionary)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (2)
86foreach (KeyValuePair<ModelItem, ModelItem> child in dictionary) 166foreach (KeyValuePair<ModelItem, int> kvp in nonSources.Where((kvp) => 0 < kvp.Value))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (3)
94foreach (KeyValuePair<string, string> kvp in mergedHintTextMap) 153foreach (KeyValuePair<TKey, TValue> kvp in lhs) 158foreach (KeyValuePair<TKey, TValue> kvp in rhs)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
972foreach (KeyValuePair<ICompositeView, List<ModelItem>> pair in containerMovedModelItemList)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
1136foreach (KeyValuePair<string, string> ns in Namespaces.FlattenNamespaces()) 1227public IEnumerable<KeyValuePair<string, string>> FlattenNamespaces() 1237foreach (KeyValuePair<string, string> pair in current)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (2)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem)); 225foreach (KeyValuePair<object, SourceLocation> entry in deserializedObjectToSourceLocationMapping)
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (1)
269foreach(KeyValuePair<string, object> entry in CurrentValues) {
fx\src\data\System\Data\Common\ObjectStorage.cs (13)
453private static Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> _tempAssemblyCache; 486KeyValuePair<Type,XmlRootAttribute> key = new KeyValuePair<Type,XmlRootAttribute>(type,attribute); 489Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> cache = _tempAssemblyCache; 506Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> tmp = 507new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>( 509foreach (KeyValuePair<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> entry in cache) 517cache = new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>( 538private class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>> 540internal static readonly IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>> Default = new TempAssemblyComparer(); 544public bool Equals(KeyValuePair<Type,XmlRootAttribute> x, KeyValuePair<Type,XmlRootAttribute> y) 555public int GetHashCode(KeyValuePair<Type,XmlRootAttribute> obj)
fx\src\data\System\Data\DataView.cs (1)
1565foreach(KeyValuePair<string,Index> entry in indexes) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (3)
401foreach(KeyValuePair<string,OleDbPropertyInfo> entry in hash) { 417foreach(KeyValuePair<string,OleDbPropertyInfo> entry in hash) { 442foreach(KeyValuePair<string,OleDbPropertyInfo> entry in hash) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (3)
67foreach (KeyValuePair<DbConnectionPoolKey, DbConnectionPoolGroup> entry in connectionPoolGroups) { 421foreach (KeyValuePair<DbConnectionPoolKey, DbConnectionPoolGroup> entry in connectionPoolGroups) { 521foreach (KeyValuePair<DbConnectionPoolKey, DbConnectionPoolGroup> entry in connectionPoolGroups) {
fx\src\data\System\Data\ProviderBase\DbConnectionPoolGroup.cs (2)
136foreach (var entry in oldPoolCollection) { 252foreach (var entry in _poolCollection) {
fx\src\data\System\Data\SqlClient\SqlDependency.cs (1)
925foreach (KeyValuePair<IdentityUserNamePair, List<DatabaseServicePair>> entry in identityDatabaseHash) {
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
1352foreach (KeyValuePair<string, SqlDependencyPerAppDomainDispatcher> entry in _sqlDependencyPerAppDomainDispatchers) { 1396foreach (KeyValuePair<SqlConnectionContainerHashHelper, SqlConnectionContainer> entry in _connectionContainers) {
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (2)
290foreach (KeyValuePair<string, SqlDependency> entry in _dependencyIdToDependencyHash) { 424foreach (KeyValuePair<string, DependencyList> entry in _notificationIdToDependenciesHash) {
System.Data.Entity (363)
System\Data\Common\CommandTrees\DbCommandTree.cs (3)
82public IEnumerable<KeyValuePair<string, TypeUsage>> Parameters 101internal abstract IEnumerable<KeyValuePair<string, TypeUsage>> GetParameters(); 130foreach (KeyValuePair<string, TypeUsage> param in this.Parameters)
System\Data\Common\CommandTrees\DbFunctionCommandTree.cs (3)
42/*CQT_PUBLIC_API(*/internal/*)*/ DbFunctionCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, EdmFunction edmFunction, TypeUsage resultType, IEnumerable<KeyValuePair<string, TypeUsage>> parameters) 54foreach (KeyValuePair<string, TypeUsage> paramInfo in parameters) 95internal override IEnumerable<KeyValuePair<string, TypeUsage>> GetParameters()
System\Data\Common\CommandTrees\DbModificationCommandTree.cs (1)
56internal override IEnumerable<KeyValuePair<string, TypeUsage>> GetParameters()
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
80internal override IEnumerable<KeyValuePair<string, TypeUsage>> GetParameters()
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (13)
61public static KeyValuePair<string, DbExpression> As(this DbExpression value, string alias) 66public static KeyValuePair<string, DbAggregate> As(this DbAggregate value, string alias) 477public static DbGroupByExpression GroupBy(this DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates) 1664public static DbNewInstanceExpression NewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues) 1805private static bool TryGetAnonymousTypeValues<TInstance, TRequired>(object instance, out List<KeyValuePair<string, TRequired>> values) 1819List<KeyValuePair<string, TRequired>> foundValues = null; 1826foundValues = new List<KeyValuePair<string, TRequired>>(); 1897List<KeyValuePair<string, DbExpression>> columnValues; 1907private static DbApplyExpression CreateApply(DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply, Func<DbExpressionBinding, DbExpressionBinding, DbApplyExpression> resultBuilder) 1909KeyValuePair<string, DbExpression> applyTemplate; 2004public static DbApplyExpression CrossApply(this DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply) 2027public static DbApplyExpression OuterApply(this DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (15)
457List<KeyValuePair<string, TypeUsage>> recordCols = new List<KeyValuePair<string, TypeUsage>>(); 476List<KeyValuePair<string, TypeUsage>> columns = new List<KeyValuePair<string, TypeUsage>>(); 547List<KeyValuePair<string, TypeUsage>> columns = new List<KeyValuePair<string, TypeUsage>>(2); 561internal static TypeUsage ValidateGroupBy(DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates, out DbExpressionList validKeys, out System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> validAggregates) 571List<KeyValuePair<string, TypeUsage>> columns = new List<KeyValuePair<string, TypeUsage>>(); 1569internal static TypeUsage ValidateNewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues, out DbExpressionList validElements) 1571List<KeyValuePair<string, TypeUsage>> columnTypes = new List<KeyValuePair<string, TypeUsage>>(); 1740private static void CheckNamed<T>(KeyValuePair<string, T> element, string argumentName, int index) 1984private static TypeUsage CreateCollectionOfRowResultType(List<KeyValuePair<string, TypeUsage>> columns)
System\Data\Common\CommandTrees\ExpressionBuilder\Row.cs (4)
21private readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<string, DbExpression>> arguments; 28public Row(KeyValuePair<string, DbExpression> columnValue, params KeyValuePair<string, DbExpression>[] columnValues) 30this.arguments = new System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<string, DbExpression>>(Helpers.Prepend(columnValues, columnValue));
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
135List<KeyValuePair<string, TypeUsage>> mappedPropInfo = null; 144mappedPropInfo = new List<KeyValuePair<string, TypeUsage>>(
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (3)
202foreach (KeyValuePair<string, TypeUsage> paramInfo in tree.Parameters) 276private static void AppendParameters(TreeNode node, IEnumerable<KeyValuePair<string, TypeUsage>> paramInfos) 280foreach(KeyValuePair<string, TypeUsage> paramInfo in paramInfos)
System\Data\Common\CommandTrees\Internal\XmlExpressionDumper.cs (1)
56foreach (KeyValuePair<string, object> attr in attrs)
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
257public KeyValuePair<string, DbExpression> ToKeyValuePair() 262public static implicit operator KeyValuePair<string, DbExpression>(DbPropertyExpression value)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (12)
2852private static List<KeyValuePair<string, DbExpression>> ConvertSelectClauseItems(AST.QueryExpr queryExpr, SemanticResolver sr) 2879List<KeyValuePair<string, DbExpression>> projectionItems = new List<KeyValuePair<string, DbExpression>>(selectClause.Items.Count); 2914private static DbExpression CreateProjectExpression(DbExpressionBinding source, AST.SelectClause selectClause, List<KeyValuePair<string, DbExpression>> projectionItems) 3653foreach (KeyValuePair<string, DbExpression> kvp in projectionExpressions) 3726List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(sr.CurrentScopeRegion.GroupAggregateInfos.Count); 3780List<KeyValuePair<string, DbExpression>> projectionItems = ProcessGroupPartitionDefinitions( 3886private static List<KeyValuePair<string, DbExpression>> ProcessGroupPartitionDefinitions( 3894List<KeyValuePair<string, DbExpression>> groupPartitionDefinitions = new List<KeyValuePair<string, DbExpression>>(); 4140foreach (var projectionExpression in projectionItems)
System\Data\Common\EntitySql\SemanticResolver.cs (5)
1624foreach (KeyValuePair<string, ScopeEntry> scopeEntry in _scopeManager.GetScopeByIndex(i)) 1641List<KeyValuePair<string, ScopeEntry>> updatedEntries = null; 1642foreach (KeyValuePair<string, ScopeEntry> scopeEntry in scope) 1650updatedEntries = new List<KeyValuePair<string, ScopeEntry>>(); 1682internal KeyValuePair<L, R> GetKVP()
System\Data\Common\EntitySql\StaticContext.cs (3)
21internal sealed class Scope : IEnumerable<KeyValuePair<string, ScopeEntry>> 80System.Collections.Generic.IEnumerator<KeyValuePair<string, ScopeEntry>> System.Collections.Generic.IEnumerable<KeyValuePair<string, ScopeEntry>>.GetEnumerator()
System\Data\Common\EntityUtil.cs (1)
113internal static IEnumerable<KeyValuePair<T1, T2>> Zip<T1, T2>(this IEnumerable<T1> first, IEnumerable<T2> second)
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (2)
105foreach (var pair in spanMap) 232foreach (var typeChoice in columnMap.TypeChoices)
System\Data\Common\Internal\Materialization\Shaper.cs (2)
110public TElement Discriminate<TElement>(object[] discriminatorValues, Func<object[], EntityType> discriminate, KeyValuePair<EntityType, Func<Shaper, TElement>>[] elementDelegates) 114foreach (KeyValuePair<EntityType, Func<Shaper, TElement>> typeDelegatePair in elementDelegates)
System\Data\Common\Internal\Materialization\Translator.cs (4)
1442foreach (var typeChoice in columnMap.TypeChoices) 1503Type typeDelegatePairType = typeof(KeyValuePair<EntityType, Func<Shaper, TElement>>); 1505foreach (var typeChoice in columnMap.TypeChoices) 1664foreach (var pair in columnMap.Properties.Zip(initializerMetadata.GetChildTypes()))
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
183foreach (KeyValuePair<string, TypeUsage> param in paramTypeUsage)
System\Data\Common\Utils\AliasGenerator.cs (1)
75foreach (KeyValuePair<string, string[]> entry in prefixCounter)
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
178foreach (var vertexRange in vertexToRange)
System\Data\Common\Utils\KeyToListMap.cs (1)
58internal IEnumerable<KeyValuePair<TKey, List<TValue>>> KeyValuePairs {
System\Data\Common\Utils\MetadataHelper.cs (2)
823internal static string GenerateHashForAllExtentViewsContent(double schemaVersion, IEnumerable<KeyValuePair<string, string>> extentViews) 826foreach (var view in extentViews)
System\Data\EntityClient\EntityCommand.cs (1)
610IEnumerable<KeyValuePair<string, TypeUsage>> queryParams = GetParameterTypeUsage();
System\Data\EntityClient\EntityCommandDefinition.cs (5)
106List<KeyValuePair<string, TypeUsage>> providerParameters = new List<KeyValuePair<string, TypeUsage>>(); 107foreach (KeyValuePair<string, TypeUsage> parameter in entityCommandTree.Parameters) 131foreach (KeyValuePair<string, TypeUsage> queryParameter in commandTree.Parameters) { 327private static EntityParameter CreateEntityParameterFromQueryParameter(KeyValuePair<string, TypeUsage> queryParameter) {
System\Data\EntityKey.cs (11)
105public EntityKey(string qualifiedEntitySetName, IEnumerable<KeyValuePair<string, object>> entityKeyValues) 706internal KeyValuePair<string, DbExpression>[] GetKeyValueExpressions(EntitySet entitySet) 740KeyValuePair<string, DbExpression>[] keyColumns; 752keyColumns = new KeyValuePair<string, DbExpression>[_compositeKeyValues.Length]; 848private static bool CheckKeyValues(IEnumerable<KeyValuePair<string, object>> entityKeyValues, 854private static bool CheckKeyValues(IEnumerable<KeyValuePair<string, object>> entityKeyValues, bool allowNullKeys, bool tokenizeStrings, 867foreach (KeyValuePair<string, object> value in entityKeyValues) 888foreach (KeyValuePair<string, object> keyValuePair in entityKeyValues) 907foreach (KeyValuePair<string, object> keyValuePair in entityKeyValues) 1281private class KeyValueReader : IEnumerable<KeyValuePair<string, object>> 1292public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (2)
155foreach (KeyValuePair<string, object> value in _facetValues) 276foreach (KeyValuePair<string, object> value in _facetValues)
System\Data\Mapping\EntityViewContainer.cs (2)
42internal IEnumerable<KeyValuePair<string, string>> ExtentViews 53protected abstract System.Collections.Generic.KeyValuePair<string, string> GetViewAt(int index);
System\Data\Mapping\FunctionImportMapping.cs (2)
231foreach (var unreachableEntityType in unreachableEntityTypes.KeyValuePairs) 245foreach (var unreachableIsTypeOf in unreachableIsTypeOfs.KeyValuePairs)
System\Data\Mapping\ObjectTypeMapping.cs (1)
170foreach (KeyValuePair<string, ObjectMemberMapping> keyValuePair in m_memberMapping)
System\Data\Mapping\StorageMappingItemCollection.cs (3)
53private Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> m_memberMappings = new Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>>(); 431foreach (KeyValuePair<EntitySetBase, List<GeneratedView>> extentViewPair in extentMappingViews.KeyValuePairs)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (4)
141foreach (KeyValuePair<EntitySetBase, List<GeneratedView>> keyValuePair in extentMappingViews.KeyValuePairs) 326var keyValues = new List<KeyValuePair<string, DbExpression>>(); 336var keyValues = new List<KeyValuePair<string, DbExpression>>(); 487foreach (KeyValuePair<string, string> extentView in viewContainer.ExtentViews)
System\Data\Mapping\StorageMappingItemLoader.cs (4)
96internal StorageMappingItemLoader(XmlReader reader, StorageMappingItemCollection storageMappingItemCollection, string fileName, Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> scalarMemberMappings) 141private Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> m_scalarMemberMappings; // dictionary of all the scalar member mappings - this is to validate that no property is mapped to different store types across mappings. 585foreach (KeyValuePair<EntitySetBase, int> mappingCount in mappingCounts) 3602KeyValuePair<TypeUsage, TypeUsage> memberMappingInfo;
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (6)
28private readonly List<KeyValuePair<int, DbSetClause>> m_inputIdentifiers; 47m_inputIdentifiers = new List<KeyValuePair<int ,DbSetClause>>(capacity); 49foreach (KeyValuePair<EdmMember, PropagatorResult> member in 97internal override long Execute(UpdateTranslator translator, EntityConnection connection, Dictionary<int, object> identifierValues, List<KeyValuePair<PropagatorResult, object>> generatedValues) 182KeyValuePair<int, DbSetClause> inputIdentifier = m_inputIdentifiers[idx]; 259foreach (KeyValuePair<int, DbSetClause> inputIdentifier in m_inputIdentifiers)
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (8)
65private List<KeyValuePair<string, PropagatorResult>> m_resultColumns; 71private List<KeyValuePair<int, DbParameter>> m_inputIdentifiers; 96foreach (KeyValuePair<int, DbParameter> inputIdentifier in m_inputIdentifiers) 148m_inputIdentifiers = new List<KeyValuePair<int, DbParameter>>(initialSize); 176m_resultColumns = new List<KeyValuePair<string, PropagatorResult>>(initializeSize); 210List<KeyValuePair<PropagatorResult, object>> generatedValues) 224foreach (KeyValuePair<int, DbParameter> inputIdentifier in m_inputIdentifiers) 250foreach (var resultColumn in m_resultColumns
System\Data\Mapping\Update\Internal\Graph.cs (3)
80internal IEnumerable<KeyValuePair<TVertex, TVertex>> Edges 84foreach (KeyValuePair<TVertex, HashSet<TVertex>> successors in m_successorMap) 217foreach (KeyValuePair<TVertex, HashSet<TVertex>> outgoingEdge in m_successorMap)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
179foreach (KeyValuePair<DirectionalRelationship, IEntityStateEntry> expected in m_impliedRelationships)
System\Data\Mapping\Update\Internal\UndirectedGraph.cs (2)
37internal IEnumerable<KeyValuePair<TVertex, TVertex>> Edges { 71foreach (KeyValuePair<TVertex, TVertex> edge in Edges) {
System\Data\Mapping\Update\Internal\UpdateCommand.cs (1)
191List<KeyValuePair<PropagatorResult, object>> generatedValues);
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
353foreach (var keyAndCommands in requiredMap.KeyValuePairs)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (4)
194List<KeyValuePair<string, DbExpression>> returningArguments = new List<KeyValuePair<string, DbExpression>>(); 333foreach (KeyValuePair<EdmProperty, PropagatorResult> setClause in setClauses) 396foreach (KeyValuePair<EdmProperty, PropagatorResult> clause in whereClauses)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (6)
386List<KeyValuePair<PropagatorResult, object>> generatedValues = new List<KeyValuePair<PropagatorResult, object>>(); 470private void BackPropagateServerGen(List<KeyValuePair<PropagatorResult, object>> generatedValues) 472foreach (KeyValuePair<PropagatorResult, object> generatedValue in generatedValues) 702IEnumerable<KeyValuePair<string, TypeUsage>> functionParams = 867foreach (KeyValuePair<EntityKey, AssociationSet> required in m_requiredEntities)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (4)
335foreach (var m in nonTrivial) 365foreach (var extentInfo in extentMap.KeyValuePairs) 402foreach (var m in pkFkMap.KeyValuePairs) 421foreach (var m in extentLOJs)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (6)
42internal readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> TypeMap; 47internal readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<EdmProperty, DbExpression>> PropertyMap; 52internal readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<Query.InternalTrees.RelProperty, DbExpression>> RelPropertyMap; 60List<KeyValuePair<object, EntityType>> typeMap, 96var typeMap = new List<KeyValuePair<object, EntityType>>(); 169foreach (KeyValuePair<EntityType, List<Query.InternalTrees.RelProperty>> kv in typeToRelPropertyMap)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (1)
765foreach (var entry in _caseStatements)
System\Data\Mapping\ViewValidator.cs (3)
264private readonly Stack<KeyValuePair<string, DbExpressionEntitySetInfo>> variableScopes = new Stack<KeyValuePair<string, DbExpressionEntitySetInfo>>(); 621internal IEnumerable<KeyValuePair<string, DbExpressionEntitySetInfo>> SetInfos
System\Data\Metadata\Edm\MetadataCollection.cs (1)
710foreach (KeyValuePair<string, OrderedIndex> pair in original.IdentityDictionary)
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (2)
103this.AddFunction(returnType, functionName, new KeyValuePair<string, PrimitiveTypeKind>[] { }); 160private void AddFunction(PrimitiveTypeKind returnType, string functionName, KeyValuePair<string, PrimitiveTypeKind>[] parameterDefinitions)
System\Data\Metadata\MetadataCache.cs (3)
204List<KeyValuePair<string, T>> keysForRemoval = null; 229foreach (KeyValuePair<string, T> pair in cache) 235keysForRemoval = new List<KeyValuePair<string, T>>();
System\Data\Metadata\ObjectHelper.cs (6)
33internal static readonly ReadOnlyCollection<KeyValuePair<string, object>> EmptyKeyValueStringObjectList = new ReadOnlyCollection<KeyValuePair<string, object>>(new KeyValuePair<string, object>[0]); 38internal static readonly KeyValuePair<string, object>[] EmptyKeyValueStringObjectArray = new KeyValuePair<string, object>[0]; 92internal static IEnumerable<KeyValuePair<T, S>> PairEnumerations<T, S>(IBaseList<T> left, IEnumerable<S> right)
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (2)
139foreach (var entry in assemblies) 149foreach (KeyValuePair<Assembly, MutableAssemblyCacheEntry> entry in assemblies)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (9)
89KeyValuePair<EdmType, int> pair; 385List<KeyValuePair<EdmProperty, PropertyInfo>> typeClosureToTrack = 386new List<KeyValuePair<EdmProperty, PropertyInfo>>(); 404foreach (var typeToTrack in typeClosureToTrack) 419List<KeyValuePair<NavigationProperty, PropertyInfo>> typeClosureToTrack = 420new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 443foreach (var typeToTrack in typeClosureToTrack) 601var typeClosureToTrack = new List<KeyValuePair<EdmProperty, PropertyInfo>>(); 618foreach (var typeToTrack in typeClosureToTrack)
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (4)
45private Dictionary<string, KeyValuePair<EdmType, int>> _conventionCSpaceTypeNames; 71internal Dictionary<string, KeyValuePair<EdmType, int>> ConventionCSpaceTypeNames 77_conventionCSpaceTypeNames = new Dictionary<string, KeyValuePair<EdmType, int>>(); 85KeyValuePair<EdmType, int> pair;
System\Data\Metadata\TypeHelpers.cs (6)
372internal static RowType CreateRowType(IEnumerable<KeyValuePair<string, TypeUsage>> columns) 377internal static RowType CreateRowType(IEnumerable<KeyValuePair<string, TypeUsage>> columns, InitializerMetadata initializerMetadata) 380foreach (KeyValuePair<string, TypeUsage> kvp in columns) 387internal static TypeUsage CreateRowTypeUsage(IEnumerable<KeyValuePair<string, TypeUsage>> columns, bool readOnly) 415List<KeyValuePair<string, TypeUsage>> resultCols = new List<KeyValuePair<string, TypeUsage>>();
System\Data\Objects\DataClasses\EntityCollection.cs (1)
561internal override void RetrieveReferentialConstraintProperties(Dictionary<string, KeyValuePair<object, IntBox>> properties, HashSet<object> visited)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
596internal override void RetrieveReferentialConstraintProperties(Dictionary<string, KeyValuePair<object, IntBox>> properties, HashSet<object> visited) 603Dictionary<string, KeyValuePair<object, IntBox>> retrievedProperties;
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2085internal abstract void RetrieveReferentialConstraintProperties(Dictionary<string, KeyValuePair<object, IntBox>> keyValues, HashSet<object> visited);
System\Data\Objects\DataClasses\RelationshipManager.cs (8)
1219internal void RetrieveReferentialConstraintProperties(out Dictionary<string, KeyValuePair<object, IntBox>> properties, HashSet<object> visited, bool includeOwnValues) 1226properties = new Dictionary<string, KeyValuePair<object, IntBox>>(); 1299private static bool CheckIfAllPropertiesWereRetrieved(Dictionary<string, KeyValuePair<object, IntBox>> properties, List<string> propertiesToRetrieve) 1307ICollection<KeyValuePair<object, IntBox>> values = properties.Values; 1310foreach (KeyValuePair<object, IntBox> valueCounterPair in values) 1323KeyValuePair<object, IntBox> valueCounterPair = properties[name]; 1335foreach (KeyValuePair<object, IntBox> valueCounterPair in values) 1349foreach (KeyValuePair<object, IntBox> valueCounterPair in values)
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (3)
80ReadOnlyCollection<KeyValuePair<ObjectParameter, QueryParameterExpression>> parameters = converter.GetParameters(); 112ReadOnlyCollection<KeyValuePair<ObjectParameter, QueryParameterExpression>> parameters = converter.GetParameters(); 157foreach (KeyValuePair<ObjectParameter, QueryParameterExpression> pair in plan.CompiledQueryParameters)
System\Data\Objects\ELinq\ELinqQueryState.cs (3)
36private ReadOnlyCollection<KeyValuePair<ObjectParameter, QueryParameterExpression>> _linqParameters; 148foreach (KeyValuePair<ObjectParameter, QueryParameterExpression> pair in _linqParameters) 217foreach (KeyValuePair<ObjectParameter, QueryParameterExpression> pair in _linqParameters)
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
38private List<KeyValuePair<ObjectParameter, QueryParameterExpression>> _parameters; 217internal System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<ObjectParameter, QueryParameterExpression>> GetParameters() 315_parameters = new List<KeyValuePair<ObjectParameter, QueryParameterExpression>>(); 689this._parameters = new List<KeyValuePair<ObjectParameter, QueryParameterExpression>>(); 1572private DbNewInstanceExpression CreateNewRowExpression(List<KeyValuePair<string, DbExpression>> columns, InitializerMetadata initializerMetadata) 1578var column = columns[i];
System\Data\Objects\ELinq\MethodCallTranslator.cs (10)
650List<KeyValuePair<string, DbExpression>> newColumns = new List<KeyValuePair<string, DbExpression>>(); 1619new List<KeyValuePair<string, TypeUsage>>() 2541new List<KeyValuePair<string, TypeUsage>>() 2759List<KeyValuePair<string, DbExpression>> keys = new List<KeyValuePair<string, DbExpression>>(); 2760List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(); 2885List<KeyValuePair<string, CqtExpression>> recordColumns = new List<KeyValuePair<string, CqtExpression>>(2);
System\Data\Objects\ELinq\Translator.cs (8)
368List<KeyValuePair<string, DbExpression>> collectionColumns = 369new List<KeyValuePair<string, DbExpression>>(2); 464foreach (KeyValuePair<Type, Type> implementedCollectionInfo in GetImplementedICollections(propertyInfo.DeclaringType)) 494private static IEnumerable<KeyValuePair<Type, Type>> GetImplementedICollections(Type type) 721List<KeyValuePair<String, DbExpression>> recordColumns = 722new List<KeyValuePair<string, DbExpression>>(memberCount + 1); 824List<KeyValuePair<String, DbExpression>> recordColumns = 825new List<KeyValuePair<string, DbExpression>>(linq.Bindings.Count + 1);
System\Data\Objects\EntityEntry.cs (8)
1711foreach (var pair in keys) 2687Dictionary<string, KeyValuePair<object, IntBox>> properties; 2695foreach (KeyValuePair<string, KeyValuePair<object, IntBox>> pair in properties) 2710internal void RetrieveReferentialConstraintPropertiesFromKeyEntries(Dictionary<string, KeyValuePair<object, IntBox>> properties) 2756internal static void AddOrIncreaseCounter(Dictionary<string, KeyValuePair<object, IntBox>> properties, string propertyName, object propertyValue) 2766KeyValuePair<object, IntBox> valueCounterPair = properties[propertyName]; 2915internal void GetOtherKeyProperties(Dictionary<string, KeyValuePair<object, IntBox>> properties)
System\Data\Objects\Internal\EntityProxyFactory.cs (5)
1044private List<KeyValuePair<NavigationProperty, PropertyInfo>> _referenceProperties; 1045private List<KeyValuePair<NavigationProperty, PropertyInfo>> _collectionProperties; 1069_referenceProperties = new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 1070_collectionProperties = new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 1172foreach (KeyValuePair<NavigationProperty, PropertyInfo> navProperty in _collectionProperties)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
218foreach (KeyValuePair<NavigationProperty, SpanPathInfo> nextInfo in currentInfo.Children)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
21using CompiledQueryParameters = System.Collections.ObjectModel.ReadOnlyCollection<System.Collections.Generic.KeyValuePair<ObjectParameter, System.Data.Objects.ELinq.QueryParameterExpression>>;
System\Data\Objects\Internal\ObjectSpanRewriter.cs (8)
142public List<KeyValuePair<string, DbExpression>> ColumnDefinitions; 151info.ColumnDefinitions = new List<KeyValuePair<string, DbExpression>>(); 234List<KeyValuePair<AssociationEndMember, AssociationEndMember>> relationshipSpans = null; 250foreach (KeyValuePair<AssociationEndMember, AssociationEndMember> relSpan in relationshipSpans) 596private List<KeyValuePair<AssociationEndMember, AssociationEndMember>> GetRelationshipSpanEnds(EntityType entityType) 599List<KeyValuePair<AssociationEndMember, AssociationEndMember>> retList = null; 620retList = new List<KeyValuePair<AssociationEndMember, AssociationEndMember>>(); 633retList = new List<KeyValuePair<AssociationEndMember, AssociationEndMember>>();
System\Data\Objects\ObjectContext.cs (3)
2099foreach (KeyValuePair<EntityKey, EntityEntry> item in entities) 2129foreach (KeyValuePair<EntityKey, EntityEntry> item in entities) 2210KeyValuePair<string, DbExpression>[] keyValueColumns = targetKeys[startFrom++].GetKeyValueExpressions(targetSet);
System\Data\Objects\ObjectStateManager.cs (18)
776foreach (var pair in this.TransactionManager.PromotedRelationships) 1606KeyValuePair<string, EntityKey> roleAndKey1, 1607KeyValuePair<string, EntityKey> roleAndKey2) 1631KeyValuePair<string, EntityKey> roleAndKey1, 1632KeyValuePair<string, EntityKey> roleAndKey2) 1848foreach (var e in _addedRelationshipStore) 1855foreach (var e in _deletedRelationshipStore) 1862foreach (var e in _unchangedRelationshipStore) 1869foreach (var e in _addedEntityStore) 1876foreach (var e in _modifiedEntityStore) 1883foreach (var e in _deletedEntityStore) 1890foreach (var e in _unchangedEntityStore) 3139foreach (var pair in addedRelationshipsByForeignKey) 3171Dictionary<string, KeyValuePair<object, IntBox>> properties = new Dictionary<string, KeyValuePair<object, IntBox>>(); 3173foreach (var pair in addedRelationshipsByGraph) 3261Dictionary<string, KeyValuePair<object, IntBox>> retrievedProperties = new Dictionary<string, KeyValuePair<object, IntBox>>();
System\Data\Objects\RelationshipWrapper.cs (2)
44KeyValuePair<string, EntityKey> roleAndKey1, 45KeyValuePair<string, EntityKey> roleAndKey2)
System\Data\Query\InternalTrees\ColumnMap.cs (2)
426foreach (KeyValuePair<object, TypedColumnMap> kv in this.TypeChoices) 513foreach (var kv in this.TypeChoices)
System\Data\Query\InternalTrees\ColumnMapCopier.cs (1)
216foreach (KeyValuePair<object, TypedColumnMap> kv in columnMap.TypeChoices)
System\Data\Query\InternalTrees\Dump.cs (4)
131foreach (KeyValuePair<string, object> attr in attrs) { 692foreach (KeyValuePair<object, TypedColumnMap> tc in columnMap.TypeChoices) { 714foreach (var tc in columnMap.TypeChoices) { 1039foreach (KeyValuePair<string, object> kv in attrs) {
System\Data\Query\InternalTrees\ExplicitDiscriminatorMap.cs (3)
27private readonly System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> m_typeMap; 42internal System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<object, EntityType>> TypeMap 70foreach (var discriminatorTypePair in this.TypeMap)
System\Data\Query\InternalTrees\OpCopier.cs (1)
920foreach (KeyValuePair<Var, Var> kv in op.VarMap[0])
System\Data\Query\InternalTrees\Vars.cs (1)
608foreach (KeyValuePair<Var, Var> kv in this)
System\Data\Query\PlanCompiler\AggregatePushdown.cs (5)
48private HashSet<KeyValuePair<Node, Node>> _candidateAggregateNodes; 73internal HashSet<KeyValuePair<Node, Node>> CandidateAggregateNodes 79_candidateAggregateNodes = new HashSet<KeyValuePair<Node, Node>>(); 866foreach (KeyValuePair<Node, Node> candidate in groupAggregateVarInfo.CandidateAggregateNodes) 887KeyValuePair<Node, Node> candidate,
System\Data\Query\PlanCompiler\CodeGen.cs (5)
109Dictionary<Var, KeyValuePair<int, int>> varMap = BuildVarMap(); 120private Dictionary<Var, KeyValuePair<int, int>> BuildVarMap() 122Dictionary<Var, KeyValuePair<int, int>> varMap = 123new Dictionary<Var, KeyValuePair<int, int>>(); 133KeyValuePair<int, int> varLocation = new KeyValuePair<int, int>(commandId, columnPos);
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (3)
184internal static ColumnMap Translate(ColumnMap columnMapToTranslate, Dictionary<Var, KeyValuePair<int, int>> varToCommandColumnMap) 192KeyValuePair<int, int> commandAndColumn; 346foreach (KeyValuePair<object, TypedColumnMap> kv in columnMap.TypeChoices)
System\Data\Query\PlanCompiler\CTreeGenerator.cs (8)
1206List<KeyValuePair<string, DbExpression>> projectedCols = new List<KeyValuePair<string, DbExpression>>(); 1371List<KeyValuePair<string, DbExpression>> projectedCols = new List<KeyValuePair<string, DbExpression>>(); 1690List<KeyValuePair<string, DbExpression>> keyExprs = new List<KeyValuePair<string, DbExpression>>(); 1780List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>();
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
284foreach (KeyValuePair<string, TypeUsage> paramInfo in ctree.Parameters) 1846internal IEnumerable<KeyValuePair<TypeUsage, bool>> ToEnumerable() 2206foreach (KeyValuePair<RelProperty, DbExpression> kv in _discriminatorMap.RelPropertyMap) 2219foreach (var propertyMap in _discriminatorMap.PropertyMap)
System\Data\Query\PlanCompiler\JoinElimination.cs (1)
120foreach (KeyValuePair<Var, Var> kv in remappedVars)
System\Data\Query\PlanCompiler\JoinGraph.cs (11)
1040IEnumerable<KeyValuePair<ColumnVar, ColumnVar>> orderedEdge1Vars = CreateOrderedKeyValueList(edge1.RightVars, edge1.LeftVars); 1041IEnumerable<KeyValuePair<ColumnVar, ColumnVar>> orderedEdge2Vars = CreateOrderedKeyValueList(edge2.LeftVars, edge2.RightVars); 1043IEnumerator<KeyValuePair<ColumnVar, ColumnVar>> orderedEdge1VarsEnumerator = orderedEdge1Vars.GetEnumerator(); 1044IEnumerator<KeyValuePair<ColumnVar, ColumnVar>> orderedEdge2VarsEnumerator = orderedEdge2Vars.GetEnumerator(); 1095private static IEnumerable<KeyValuePair<ColumnVar, ColumnVar>> CreateOrderedKeyValueList(List<ColumnVar> keyVars, List<ColumnVar> valueVars) 1097List<KeyValuePair<ColumnVar, ColumnVar>> edgeVars = new List<KeyValuePair<ColumnVar, ColumnVar>>(keyVars.Count); 1763foreach (KeyValuePair<md.EntitySetBase, List<JoinEdge>> kv in groupedEdges) 2294foreach (KeyValuePair<Var, Var> kv in m_varMap) 2685foreach (KeyValuePair<Node, int> predicatePair in leftPredicates) 2693foreach (KeyValuePair<Node, int> predicatePair in rightPredicates)
System\Data\Query\PlanCompiler\NestPullup.cs (2)
1842foreach (KeyValuePair<Var, Node> collectionVarDefinitionPair in collectionVarDefinitions) 2220foreach (KeyValuePair<Var, Var> kv in drivingNodeVarMap)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (4)
622KeyValuePair<md.EdmProperty, Node> kv = GetPropertyValue(input, prop, ignoreMissingProperties); 639private KeyValuePair<md.EdmProperty, Node> GetPropertyValue(Node input, md.EdmProperty property, bool ignoreMissingProperties) 1527foreach (KeyValuePair<Var, Var> kv in varMap) 1566foreach (KeyValuePair<Var, Var> kv in varMap)
System\Data\Query\PlanCompiler\PreProcessor.cs (3)
1607List<KeyValuePair<string, TypeUsage>> keyFieldTypes = new List<KeyValuePair<string, TypeUsage>>(); 1841foreach (var discriminatorTypePair in op.DiscriminatorMap.TypeMap)
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
730foreach (KeyValuePair<Var, Var> kv in varMap)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (5)
344foreach (KeyValuePair<md.EntitySetBase, DiscriminatorMapInfo> setMapPair in discriminatorMaps) 574foreach (KeyValuePair<md.TypeUsage, TypeInfo> kv in m_typeInfoMap) 695foreach (KeyValuePair<md.TypeUsage, TypeInfo> kv in m_typeInfoMap) 961List<KeyValuePair<string, md.TypeUsage>> fieldList = new List<KeyValuePair<string, md.TypeUsage>>();
System\Data\Query\PlanCompiler\TransformationRules.cs (2)
1578foreach (KeyValuePair<Var, Var> kv in varMap) 3838foreach (KeyValuePair<Var, Var> kv in setOp.VarMap[indexToReturn])
System\Data\Query\PlanCompiler\VarRemapper.cs (2)
178foreach (KeyValuePair<Var, Var> kv in varMap) 184foreach (KeyValuePair<Var, Var> kv in newVarMap)
System\Data\Query\ResultAssembly\BridgeDataReader.cs (6)
39private IEnumerator<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> NextResultShaperInfoEnumerator; 78internal BridgeDataReader(Shaper<RecordState> shaper, CoordinatorFactory<RecordState> coordinatorFactory, int depth, IEnumerator<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> nextResultShaperInfos) 130var shaperInfo = CreateShaperInfo(storeDataReader, columnMap, workspace); 135private static KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>> CreateShaperInfo(DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace) 150private static IEnumerable<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> GetNextResultShaperInfo(DbDataReader storeDataReader, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps) 349var nextResultShaperInfo = NextResultShaperInfoEnumerator.Current;
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (3)
424List<KeyValuePair<string, DbExpression>> projectColumns = new List<KeyValuePair<string, DbExpression>>(flattenedProperties.Count); 464foreach (KeyValuePair<string, DbExpression> column in projectColumns)
System\Data\SqlClient\SqlProviderServices.cs (1)
110foreach (KeyValuePair<string, TypeUsage> queryParameter in commandTree.Parameters) {
System.Data.Entity.Design (27)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (4)
48public static void WriteXml(XmlWriter writer, ItemCollection collection, string namespaceToWrite, Version schemaVersion, params KeyValuePair<string, string> [] xmlPrefixToNamespaces) 53internal static void WriteXml(XmlWriter writer, ItemCollection collection, string namespaceToWrite, ErrorsLookup errorsLookup, List<EdmType> commentedOutItems, string provider, string providerManifestToken, Version schemaVersion, params KeyValuePair<string, string>[] xmlPrefixToNamespaces) 637private void WriteSchemaElement(string schemaNamespace, string provider, string providerManifestToken, params KeyValuePair<string, string>[] xmlPrefixToNamespaces) 661foreach (KeyValuePair<string, string> xmlPrefixToNamespace in xmlPrefixToNamespaces)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (4)
472KeyValuePair<string, string> namespacesPrefix = new KeyValuePair<string, string>(DesignXmlConstants.AnnotationPrefix, DesignXmlConstants.EdmAnnotationNamespace); 919KeyValuePair<string, RelationshipMultiplicity> endMultiplicityOverride = CreateEndMultiplicityOverride(session, storeAssociationType, association); 939private KeyValuePair<string, RelationshipMultiplicity> CreateEndMultiplicityOverride(LoadMethodSessionState session, AssociationType storeAssociation, AssociationType modelAssociation) 1074private AssociationEndMember CreateAssociationEndMember(LoadMethodSessionState session, AssociationEndMember storeEndMember, KeyValuePair<string, RelationshipMultiplicity> endMultiplicityOverride, UniqueIdentifierService usedEndMemberNames)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (3)
272var xmlPrefixToNamespace = new KeyValuePair<string, string>("store", DesignXmlConstants.EntityStoreSchemaGeneratorNamespace); 1601List<KeyValuePair<string, DbExpression>> projectList = new List<KeyValuePair<string, DbExpression>>(entitySet.ElementType.Members.Count);
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (4)
455foreach (var item in dictionary) 489getViewAtMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) })); 503foreach (KeyValuePair<EntitySetBase, string> generatedViewPair in generatedViews) 543viewMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
System\Data\EntityModel\Emitters\TypeReference.cs (6)
44private readonly Memoizer<KeyValuePair<string, bool>, CodeTypeReference> _fromStringMemoizer; 45private readonly Memoizer<KeyValuePair<string, CodeTypeReference>, CodeTypeReference> _fromStringGenericMemoizer; 52_fromStringMemoizer = new Memoizer<KeyValuePair<string, bool>, CodeTypeReference>(ComputeFromString, null); 54_fromStringGenericMemoizer = new Memoizer<KeyValuePair<string, CodeTypeReference>, CodeTypeReference>(ComputeFromStringGeneric, null); 117private CodeTypeReference ComputeFromString(KeyValuePair<string, bool> arguments) 206private CodeTypeReference ComputeFromStringGeneric(KeyValuePair<string, CodeTypeReference> arguments)
System\Data\EntityModel\Emitters\Utils.cs (6)
55private static List<KeyValuePair<string, Type>> _typeReservedNames = InitializeTypeReservedNames(); 60static List<KeyValuePair<string, Type>> InitializeTypeReservedNames() 95List<KeyValuePair<string, Type>> pairs = new List<KeyValuePair<string, Type>>(); 96foreach (KeyValuePair<string, Type> pair in typeReservedNames) 356foreach(KeyValuePair<string, Type> pair in _typeReservedNames)
System.Data.Linq (5)
ChangeDirector.cs (4)
49List<KeyValuePair<TrackedObject, object[]>> syncRollbackItems; 56private List<KeyValuePair<TrackedObject, object[]>> SyncRollbackItems { 59syncRollbackItems = new List<KeyValuePair<TrackedObject, object[]>>(); 212foreach (KeyValuePair<TrackedObject, object[]> rollbackItemPair in this.SyncRollbackItems) {
Mapping\MappedMetaModel.cs (1)
699foreach(var orphan in names) {
System.Data.Services (69)
parent\Client\System\Data\Services\Client\BatchStream.cs (2)
294KeyValuePair<string, string>[] parameters = HttpProcessUtility.ReadContentType(contentType, out mime, out encoding); 300foreach (KeyValuePair<string, string> parameter in parameters)
System\Data\Services\BatchServiceHost.cs (1)
93foreach (KeyValuePair<string, string> header in batchStream.ContentHeaders)
System\Data\Services\HttpProcessUtility.cs (16)
308internal static KeyValuePair<string, string>[] ReadContentType(string contentType, out string mime, out Encoding encoding) 328internal static string GetParameterValue(KeyValuePair<string, string>[] parameters, string parameterName) 335foreach (KeyValuePair<string, string> parameterInfo in parameters) 352internal static bool TryReadVersion(string text, out KeyValuePair<Version, string> result) 370result = default(KeyValuePair<Version, string>); 512KeyValuePair<string, string>[] parameters = null; 642KeyValuePair<string, string>[] parameters = null; 678private static void ReadMediaTypeParameter(string text, ref int textIndex, ref KeyValuePair<string, string>[] parameters) 699parameters = new KeyValuePair<string, string>[1]; 703KeyValuePair<string, string>[] grow = new KeyValuePair<string, string>[parameters.Length + 1]; 995private readonly KeyValuePair<string, string>[] parameters; 1009internal MediaType(string type, string subType, KeyValuePair<string, string>[] parameters) 1026internal KeyValuePair<string, string>[] Parameters 1081foreach (KeyValuePair<string, string> parameter in this.parameters) 1117foreach (KeyValuePair<string, string> parameter in this.parameters)
System\Data\Services\Providers\BaseServiceProvider.cs (1)
342public abstract IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target);
System\Data\Services\Providers\DataServiceProviderWrapper.cs (4)
70private static readonly IEnumerable<KeyValuePair<string, object>> EmptyOpenPropertyValues = new KeyValuePair<string, object>[0]; 483public IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target) 486IEnumerable<KeyValuePair<string, object>> result = this.queryProvider.GetOpenPropertyValues(target);
System\Data\Services\Providers\IDataServiceQueryProvider.cs (1)
75IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target);
System\Data\Services\Providers\IDataServiceUpdateProvider.cs (1)
29void SetConcurrencyValues(object resourceCookie, bool? checkForEquality, IEnumerable<KeyValuePair<string, object>> concurrencyValues);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (8)
185public override IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target) 253foreach (var set in this.EntitySets) 308foreach (KeyValuePair<string, HashSet<EdmType>> typesInNamespace in metadataManager.NamespaceAlongWithTypes) 551foreach (KeyValuePair<object, object> objectToBeReplaced in this.objectsToBeReplaced) 632public void SetConcurrencyValues(object resource, bool? checkForEquality, IEnumerable<KeyValuePair<string, object>> concurrencyValues) 646foreach (KeyValuePair<string, object> etag in concurrencyValues) 799foreach (KeyValuePair<string, ResourceSet> containerEntry in this.EntitySets) 2571internal IEnumerable<KeyValuePair<string, HashSet<EdmType>>> NamespaceAlongWithTypes
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
172public override IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target) 264foreach (KeyValuePair<string, ResourceSet> entitySetInfo in entitySets)
System\Data\Services\Serializers\JsonSerializer.cs (1)
794foreach (var pair in this.Provider.GetOpenPropertyValues(customObject))
System\Data\Services\Serializers\MetadataSerializer.cs (3)
237foreach (KeyValuePair<string, HashSet<ResourceType>> namespaceAlongWithTypes in metadataManager.NamespaceAlongWithTypes) 800internal IEnumerable<KeyValuePair<string, HashSet<ResourceType>>> NamespaceAlongWithTypes 810foreach (var namespaceTypePair in this.resourceTypes)
System\Data\Services\Serializers\PlainXmlSerializer.cs (2)
308IEnumerable<KeyValuePair<string, object>> properties = this.Provider.GetOpenPropertyValues(element); 309foreach (KeyValuePair<string, object> property in properties)
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
189KeyValuePair<string, string>[] contentTypeParameters = HttpProcessUtility.ReadContentType(mediaType, out mime, out encoding);
System\Data\Services\Serializers\SyndicationSerializer.cs (7)
332private static void WriteLinkRelations(string title, string linkRelation, string relativeUri, SyndicationItem item, params KeyValuePair<XmlQualifiedName, string>[] attributeExtensions) 342foreach (KeyValuePair<XmlQualifiedName, string> attributeExtension in attributeExtensions) 713KeyValuePair<XmlQualifiedName, string>[] attributeExtensions = new KeyValuePair<XmlQualifiedName, string>[0]; 717attributeExtensions = new KeyValuePair<XmlQualifiedName, string>[] { new KeyValuePair<XmlQualifiedName, string>(mediaResourceETagKey, mediaETag) }; 869IEnumerable<KeyValuePair<string, object>> properties = this.Provider.GetOpenPropertyValues(customObject); 870foreach (KeyValuePair<string, object> property in properties)
System\Data\Services\UpdatableWrapper.cs (6)
173IEnumerable<KeyValuePair<string, object>> etagValues = null; 181etagValues = new KeyValuePair<string, object>[0]; 329private static IEnumerable<KeyValuePair<string, object>> ParseETagValue(IList<ResourceProperty> etagProperties, string ifMatchHeaderValue) 337return new KeyValuePair<string, object>[0]; 382KeyValuePair<string, object>[] etagPropertyInfo = new KeyValuePair<string, object>[etagProperties.Count];
System\Data\Services\UpdateTracker.cs (2)
91foreach (var item in this.items) 95foreach (var element in item.Value)
System\Data\Services\WebUtil.cs (11)
66private static readonly KeyValuePair<Type, string>[] PrimitiveTypesEdmNameMapping = 67new KeyValuePair<Type, string>[] 100private static readonly KeyValuePair<Type, string>[] PrimitiveTypesMimeTypeMapping = 101new KeyValuePair<Type, string>[] 108private static readonly KeyValuePair<Type, ContentFormat>[] PrimitiveTypesContentFormatMapping = 109new KeyValuePair<Type, ContentFormat>[] 342foreach (KeyValuePair<Type, string> mapping in PrimitiveTypesMimeTypeMapping) 351foreach (KeyValuePair<Type, ContentFormat> mapping in PrimitiveTypesContentFormatMapping) 611foreach (KeyValuePair<Type, string> primitiveTypeInfo in PrimitiveTypesEdmNameMapping) 1531KeyValuePair<Version, string> version; 1569KeyValuePair<Version, string> version;
System.Data.Services.Client (26)
parent\Server\System\Data\Services\HttpProcessUtility.cs (12)
308internal static KeyValuePair<string, string>[] ReadContentType(string contentType, out string mime, out Encoding encoding) 352internal static bool TryReadVersion(string text, out KeyValuePair<Version, string> result) 370result = default(KeyValuePair<Version, string>); 512KeyValuePair<string, string>[] parameters = null; 678private static void ReadMediaTypeParameter(string text, ref int textIndex, ref KeyValuePair<string, string>[] parameters) 699parameters = new KeyValuePair<string, string>[1]; 703KeyValuePair<string, string>[] grow = new KeyValuePair<string, string>[parameters.Length + 1]; 995private readonly KeyValuePair<string, string>[] parameters; 1009internal MediaType(string type, string subType, KeyValuePair<string, string>[] parameters) 1026internal KeyValuePair<string, string>[] Parameters 1117foreach (KeyValuePair<string, string> parameter in this.parameters)
System\Data\Services\Client\ALinq\ResourceBinder.cs (3)
199foreach (KeyValuePair<ResourceSetExpression, List<Expression>> predicates in predicatesByTarget) 285foreach(var g in keyValues) 427foreach (KeyValuePair<PropertyInfo, ConstantExpression> keyValue in keyValuesDictionary)
System\Data\Services\Client\ALinq\UriWriter.cs (1)
252foreach (var kvp in rse.KeyPredicate)
System\Data\Services\Client\AtomMaterializerLog.cs (1)
108foreach (KeyValuePair<String, AtomEntry> entity in this.identityStack)
System\Data\Services\Client\AtomParser.cs (4)
60private readonly Func<XmlReader, KeyValuePair<XmlReader, object>> entryCallback; 97internal AtomParser(XmlReader reader, Func<XmlReader, KeyValuePair<XmlReader, object>> entryCallback, string typeScheme, string currentDataNamespace) 171internal static KeyValuePair<XmlReader, object> XElementBuilderCallback(XmlReader reader) 878var callbackResult = this.entryCallback(this.reader);
System\Data\Services\Client\BatchStream.cs (2)
294KeyValuePair<string, string>[] parameters = HttpProcessUtility.ReadContentType(contentType, out mime, out encoding); 300foreach (KeyValuePair<string, string> parameter in parameters)
System\Data\Services\Client\ClientConvert.cs (1)
273foreach (var pair in ClientConvert.namedTypesMap)
System\Data\Services\Client\DataServiceContext.cs (1)
2267KeyValuePair<Version, string> version;
System\Data\Services\Client\WebUtil.cs (1)
136foreach (KeyValuePair<string, string> header in headers)
System.Data.Services.Design (14)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
269foreach (var pair in pairs) 330foreach (var pair in reversePairs)
System\Data\EntityModel\Emitters\TypeReference.cs (6)
33private readonly Memoizer<KeyValuePair<string, bool>, CodeTypeReference> _fromStringMemoizer; 34private readonly Memoizer<KeyValuePair<string, CodeTypeReference>, CodeTypeReference> _fromStringGenericMemoizer; 41_fromStringMemoizer = new Memoizer<KeyValuePair<string, bool>, CodeTypeReference>(ComputeFromString, null); 43_fromStringGenericMemoizer = new Memoizer<KeyValuePair<string, CodeTypeReference>, CodeTypeReference>(ComputeFromStringGeneric, null); 109private CodeTypeReference ComputeFromString(KeyValuePair<string, bool> arguments) 169private CodeTypeReference ComputeFromStringGeneric(KeyValuePair<string, CodeTypeReference> arguments)
System\Data\EntityModel\Emitters\Utils.cs (6)
59private static List<KeyValuePair<string, Type>> _typeReservedNames = InitializeTypeReservedNames(); 64static List<KeyValuePair<string, Type>> InitializeTypeReservedNames() 80List<KeyValuePair<string, Type>> pairs = new List<KeyValuePair<string, Type>>(); 81foreach (KeyValuePair<string, Type> pair in typeReservedNames) 336foreach (KeyValuePair<string, Type> pair in _typeReservedNames)
System.Data.SqlXml (4)
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
186foreach (KeyValuePair<string, Type> pair in scriptClasses) {
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
189foreach (KeyValuePair<Template, Stylesheet> pair in fwdApplyImportsGraph) { 238foreach (KeyValuePair<QilName, XslFlags> modeFlag in sheet.ModeFlags) {
System\Xml\Xsl\Xslt\XsltInput.cs (1)
124foreach (KeyValuePair<string, string> prefixNamespacePair in namespacesInScope) {
System.IdentityModel (5)
System\IdentityModel\Metadata\IndexedProtocolEndpointDictionary.cs (1)
21foreach (KeyValuePair<int, IndexedProtocolEndpoint> kvp in this)
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (1)
233foreach (KeyValuePair<string, object> messageParam in secondaryParameters.Properties)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
697foreach (KeyValuePair<string, object> messageParam in rst.Properties) 1709foreach (KeyValuePair<string, object> messageParam in response.Properties)
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
1483foreach (KeyValuePair<string, string> property in properties)
System.IO.Log (1)
System\IO\Log\ReservationCollection.cs (1)
122foreach (KeyValuePair<long, int> entry in reservationsToClear)
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
4244foreach (KeyValuePair<Key, CacheEntry<Value>> kv in table)
System.Runtime.Caching (6)
System\Caching\MemoryCache.cs (1)
454protected override IEnumerator<KeyValuePair<string, object>> GetEnumerator() {
System\Caching\ObjectCache.cs (5)
16public abstract class ObjectCache : IEnumerable<KeyValuePair<string, object>> { 47return ((IEnumerable<KeyValuePair<string, object>>)this).GetEnumerator(); 53IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() { 57protected abstract IEnumerator<KeyValuePair<string, object>> GetEnumerator();
System.Runtime.DurableInstancing (19)
System\Runtime\DurableInstancing\InstanceOwnerQueryResult.cs (1)
44foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> metadata in instanceOwners)
System\Runtime\DurableInstancing\InstancePersistence.cs (5)
43foreach (KeyValuePair<XName, InstanceValue> property in bag) 50public static void ValidateProperty(this KeyValuePair<XName, InstanceValue> property) 55public static void ValidateProperty(this KeyValuePair<XName, InstanceValue> property, bool allowDelete) 86foreach (KeyValuePair<XName, InstanceValue> value in bag) 113foreach (KeyValuePair<XName, InstanceValue> value in bag)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (3)
326foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyMetadata in associatedInstanceKeyMetadata) 338foreach (KeyValuePair<Guid, IDictionary<XName, InstanceValue>> keyMetadata in completedInstanceKeyMetadata) 367foreach (KeyValuePair<Guid, InstanceKeyView> key in InstanceView.InstanceKeys)
System\Runtime\DurableInstancing\InstanceView.cs (1)
83foreach (KeyValuePair<Guid, InstanceKeyView> key in source.InstanceKeys)
System\Runtime\PersistencePipeline.cs (9)
86foreach (KeyValuePair<XName, object> value in readWriteValues) 100foreach (KeyValuePair<XName, object> value in writeOnlyValues) 141foreach (KeyValuePair<XName, object> value in writeOnlyValues.Item2) 339public void Add(KeyValuePair<XName, object> item) 349public bool Contains(KeyValuePair<XName, object> item) 359public void CopyTo(KeyValuePair<XName, object>[] array, int arrayIndex) 361foreach (KeyValuePair<XName, object> entry in this) 367public bool Remove(KeyValuePair<XName, object> item) 372public IEnumerator<KeyValuePair<XName, object>> GetEnumerator()
System.Runtime.Serialization (16)
System\Runtime\Serialization\CodeExporter.cs (5)
56foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in dataContractSet) 77foreach (KeyValuePair<string, string> pair in options.Namespaces) 267foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in dataContractSet) 999foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in knownContracts) 1384foreach (KeyValuePair<string, object> pair in baseMemberNames)
System\Runtime\Serialization\CollectionDataContract.cs (3)
1481IEnumerator<KeyValuePair<K, V>> enumerator; 1483public GenericDictionaryEnumerator(IEnumerator<KeyValuePair<K, V>> enumerator) 1501KeyValuePair<K, V> current = enumerator.Current;
System\Runtime\Serialization\DataContractSet.cs (3)
47foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in dataContractSet) 54foreach (KeyValuePair<DataContract, object> pair in dataContractSet.processedContracts) 325public IEnumerator<KeyValuePair<XmlQualifiedName, DataContract>> GetEnumerator()
System\Runtime\Serialization\Globals.cs (1)
973typeOfKeyValuePair = typeof(KeyValuePair<,>);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
302foreach (KeyValuePair<XmlQualifiedName, DataContract> knownDataContract in traditionalDataContract.KnownDataContracts)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
70foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in entry)
System\Runtime\Serialization\SchemaExporter.cs (1)
56foreach (KeyValuePair<XmlQualifiedName, DataContract> pair in dataContractSet)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
957foreach (KeyValuePair<string, string> prefixNsPair in namespaces)
System.ServiceModel (286)
System\ServiceModel\Administration\WbemProvider.cs (1)
881foreach (KeyValuePair<string, object> kv in objPathRegex.Keys)
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
136foreach (KeyValuePair<string, int> pair in myHeaders)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
1627KeyValuePair<string, object>[] properties, MessageHeaders headers) 1820KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count]; 1821((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0); 1845KeyValuePair<string, object>[] properties; 1850KeyValuePair<string, object>[] properties, MessageHeaders headers)
System\ServiceModel\Channels\ChannelDemuxer.cs (4)
373KeyValuePair<MessageFilter, IChannelListener>[] pairs = new KeyValuePair<MessageFilter, IChannelListener>[this.filterTable.Count]; 2353KeyValuePair<MessageFilter, InputQueueChannelListener<TInnerChannel>>[] pairs = new KeyValuePair<MessageFilter, InputQueueChannelListener<TInnerChannel>>[this.filterTable.Count];
System\ServiceModel\Channels\ConnectionPool.cs (1)
97foreach (KeyValuePair<TKey, EndpointConnectionPool> poolEntry in endpointPools)
System\ServiceModel\Channels\ContextDictionary.cs (6)
33foreach (KeyValuePair<string, string> pair in context) 112public void Add(KeyValuePair<string, string> item) 131public bool Contains(KeyValuePair<string, string> item) 153public void CopyTo(KeyValuePair<string, string>[] array, int arrayIndex) 159public IEnumerator<KeyValuePair<string, string>> GetEnumerator() 175public bool Remove(KeyValuePair<string, string> item)
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
161foreach (KeyValuePair<string, string> pair in context)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
3321foreach (KeyValuePair<string, IEnumerable<string>> header in headers) 4215foreach (KeyValuePair<string, object> property in this.httpRequestMessage.Properties)
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (6)
79foreach (KeyValuePair<string, IEnumerable<string>> header in this.AllHeaders) 99private IEnumerable<KeyValuePair<string, IEnumerable<string>>> AllHeaders 104IEnumerable<KeyValuePair<string, IEnumerable<string>>> headers; 233foreach (var header in this.AllHeaders) 417private KeyValuePair<string, IEnumerable<string>> GetHeaderAt(int index) 421foreach (KeyValuePair<string, IEnumerable<string>> header in this.AllHeaders)
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (5)
98foreach (KeyValuePair<string, IEnumerable<string>> header in httpRequestMessage.Headers) 103foreach (KeyValuePair<string, object> header in httpRequestMessage.Properties) 129foreach (KeyValuePair<string, IEnumerable<string>> header in content.Headers) 150internal static void AddHeaderWithoutValidation(this HttpHeaders httpHeaders, KeyValuePair<string, IEnumerable<string>> header) 168foreach (KeyValuePair<string, object> property in messageProperties)
System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
341foreach (KeyValuePair<string, IEnumerable<string>> header in content.Headers)
System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
70foreach (KeyValuePair<string, IEnumerable<string>> header in httpResponseMessage.Headers)
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
360foreach (KeyValuePair<string, IEnumerable<string>> header in content.Headers)
System\ServiceModel\Channels\HttpTransportManager.cs (1)
89foreach (KeyValuePair<string, UriPrefixTable<HttpChannelListener>> pair in this.addressTables)
System\ServiceModel\Channels\Message.cs (7)
992public BodyWriterMessage(MessageHeaders headers, KeyValuePair<string, object>[] properties, BodyWriter bodyWriter) 1091KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count]; 1092((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0); 1776KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count]; 1777((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0);
System\ServiceModel\Channels\MessageBuffer.cs (8)
79KeyValuePair<string, object>[] properties; 93properties = new KeyValuePair<string, object>[message.Properties.Count]; 94((ICollection<KeyValuePair<string, object>>)message.Properties).CopyTo(properties, 0); 177KeyValuePair<string, object>[] properties; 184KeyValuePair<string, object>[] properties, bool[] understoodHeaders, bool understoodHeadersModified) 272KeyValuePair<string, object>[] properties; 278KeyValuePair<string, object>[] properties, BodyWriter bodyWriter) 329protected KeyValuePair<string, object>[] Properties
System\ServiceModel\Channels\MessageProperties.cs (16)
44internal MessageProperties(KeyValuePair<string, object>[] array) 420internal void CopyProperties(KeyValuePair<string, object>[] array) 429KeyValuePair<string, object> property = array[i]; 725void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int index) 766void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> pair) 776bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> pair) 798return ((IEnumerable<KeyValuePair<string, object>>)this).GetEnumerator(); 801IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() 806List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(propertyCount); 838bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> pair)
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (1)
190foreach (KeyValuePair<long, MsmqReceiveContext> msgEntry in this.messageExpiryMap)
System\ServiceModel\Channels\PnrpPeerResolver.cs (2)
658foreach (KeyValuePair<uint, string> linkEntry in LinkCloudNames) 669foreach (KeyValuePair<uint, string> siteEntry in SiteCloudNames)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
721foreach (KeyValuePair<IReliableChannelBinder, TState> pair in tempFaultList)
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (1)
658foreach (KeyValuePair<Int64, ReliableRequestContext> pair in this.requestsByReplySequenceNumber)
System\ServiceModel\Channels\TransportManager.cs (1)
91foreach (KeyValuePair<BaseUriWithWildcard, TChannelListener> pair in addressTable.GetAll())
System\ServiceModel\Channels\UriPrefixTable.cs (5)
46foreach (KeyValuePair<BaseUriWithWildcard, TItem> current in objectToClone.GetAll()) 88public IEnumerable<KeyValuePair<BaseUriWithWildcard, TItem>> GetAll() 92List<KeyValuePair<BaseUriWithWildcard, TItem>> result = new List<KeyValuePair<BaseUriWithWildcard, TItem>>(); 478public void Collect(List<KeyValuePair<BaseUriWithWildcard, TData>> result)
System\ServiceModel\ComIntegration\ProxyManager.cs (2)
36IEnumerator<KeyValuePair<Guid, ComProxy>> enumeratorInterfaces = InterfaceIDToComProxy.GetEnumerator(); 39KeyValuePair<Guid, ComProxy> current = enumeratorInterfaces.Current;
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
498foreach (KeyValuePair<string, SupportingTokenParameters> operation1 in b1.OperationSupportingTokenParameters)
System\ServiceModel\Description\DispatcherBuilder.cs (2)
685foreach (KeyValuePair<ListenUriInfo, StuffPerListenUriInfo> stuff in stuffPerListenUriInfo) 829foreach (KeyValuePair<ListenUriInfo, StuffPerListenUriInfo> stuff in stuffPerListenUriInfo)
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (9)
65foreach (KeyValuePair<OperationDescription, IEnumerable<XmlElement>> entry in operationBindingAssertions) 71foreach (KeyValuePair<MessageDescription, IEnumerable<XmlElement>> entry in messageBindingAssertions) 77foreach (KeyValuePair<FaultDescription, IEnumerable<XmlElement>> entry in faultBindingAssertions) 246KeyValuePair<K, IEnumerator<V>>[] digits = InitializeCounter<K, V>(sets, counterValue); 255static KeyValuePair<K, IEnumerator<V>>[] InitializeCounter<K, V>(Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue) 257KeyValuePair<K, IEnumerator<V>>[] digits = new KeyValuePair<K, IEnumerator<V>>[sets.Count]; 261foreach (KeyValuePair<K, IEnumerable<V>> kvp in sets) 276static bool IncrementCounter<K, V>(KeyValuePair<K, IEnumerator<V>>[] digits, Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
System\ServiceModel\Description\WsdlImporter.cs (2)
2327foreach (KeyValuePair<string, XmlElement> policyDocument in importer.policyDocuments) 2363void AddExternalPolicy(WsdlImporter importer, KeyValuePair<string, XmlElement> policyDocument)
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
170foreach (var entry in this.cache.Where(pair => !pair.Value.IsAlive).ToList())
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (10)
67foreach (KeyValuePair<MessageFilter, TFilterData> item in filters) 143public void Add(KeyValuePair<MessageFilter, TFilterData> item) 155public bool Contains(KeyValuePair<MessageFilter, TFilterData> item) 157return ((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item); 165public void CopyTo(KeyValuePair<MessageFilter, TFilterData>[] array, int arrayIndex) 167((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).CopyTo(array, arrayIndex); 175public IEnumerator<KeyValuePair<MessageFilter, TFilterData>> GetEnumerator() 177return ((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).GetEnumerator(); 472public bool Remove(KeyValuePair<MessageFilter, TFilterData> item) 474if (((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item))
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (8)
87public void Add(KeyValuePair<MessageFilter, FilterData> item) 114public bool Contains(KeyValuePair<MessageFilter, FilterData> item) 116return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).Contains(item); 128public void CopyTo(KeyValuePair<MessageFilter, FilterData>[] array, int arrayIndex) 130((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).CopyTo(array, arrayIndex); 138public IEnumerator<KeyValuePair<MessageFilter, FilterData>> GetEnumerator() 440public bool Remove(KeyValuePair<MessageFilter, FilterData> item) 442if (((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).Contains(item))
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
277KeyValuePair<Type, ArrayList>[] multipleHeaderValues = null; 309multipleHeaderValues = new KeyValuePair<Type, ArrayList>[parameters.Length];
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (9)
201public void Add(KeyValuePair<MessageFilter, TFilterData> item) 210foreach (KeyValuePair<string, HeaderBit[]> item in headerLookup) 275public bool Contains(KeyValuePair<MessageFilter, TFilterData> item) 277return ((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item); 289public void CopyTo(KeyValuePair<MessageFilter, TFilterData>[] array, int arrayIndex) 291((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).CopyTo(array, arrayIndex); 320public IEnumerator<KeyValuePair<MessageFilter, TFilterData>> GetEnumerator() 782public bool Remove(KeyValuePair<MessageFilter, TFilterData> item) 784if (((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item))
System\ServiceModel\Dispatcher\MessageFilter.cs (25)
82foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 108foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 132foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 145foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 158foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 180foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 202foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 215foreach (KeyValuePair<MessageFilter, FilterData> item in this.filters) 276bool ICollection<KeyValuePair<MessageFilter, FilterData>>.IsReadOnly 284void ICollection<KeyValuePair<MessageFilter, FilterData>>.Add(KeyValuePair<MessageFilter, FilterData> item) 286((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).Add(item); 289bool ICollection<KeyValuePair<MessageFilter, FilterData>>.Contains(KeyValuePair<MessageFilter, FilterData> item) 291return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).Contains(item); 294void ICollection<KeyValuePair<MessageFilter, FilterData>>.CopyTo(KeyValuePair<MessageFilter, FilterData>[] array, int arrayIndex) 296((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).CopyTo(array, arrayIndex); 299bool ICollection<KeyValuePair<MessageFilter, FilterData>>.Remove(KeyValuePair<MessageFilter, FilterData> item) 301return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).Remove(item); 306return ((IEnumerable<KeyValuePair<MessageFilter, FilterData>>)this).GetEnumerator(); 309IEnumerator<KeyValuePair<MessageFilter, FilterData>> IEnumerable<KeyValuePair<MessageFilter, FilterData>>.GetEnumerator() 311return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.filters).GetEnumerator();
System\ServiceModel\Dispatcher\MessageFilterTable.cs (10)
98foreach (KeyValuePair<MessageFilter, TFilterData> item in this.filters) 210public void Add(KeyValuePair<MessageFilter, TFilterData> item) 221public bool Contains(KeyValuePair<MessageFilter, TFilterData> item) 223return ((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item); 231public void CopyTo(KeyValuePair<MessageFilter, TFilterData>[] array, int arrayIndex) 233((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).CopyTo(array, arrayIndex); 258public IEnumerator<KeyValuePair<MessageFilter, TFilterData>> GetEnumerator() 260return ((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).GetEnumerator(); 573public bool Remove(KeyValuePair<MessageFilter, TFilterData> item) 575if (((ICollection<KeyValuePair<MessageFilter, TFilterData>>)this.filters).Contains(item))
System\ServiceModel\Dispatcher\MessageQueryCollection.cs (2)
13public abstract IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(Message message); 14public abstract IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(MessageBuffer buffer);
System\ServiceModel\Dispatcher\MessageQueryTable.cs (24)
85public void Add(KeyValuePair<MessageQuery, TItem> item) 96public bool Contains(KeyValuePair<MessageQuery, TItem> item) 98return ((ICollection<KeyValuePair<MessageQuery, TItem>>) this.dictionary).Contains(item); 106public void CopyTo(KeyValuePair<MessageQuery, TItem>[] array, int arrayIndex) 108((ICollection<KeyValuePair<MessageQuery, TItem>>) this.dictionary).CopyTo(array, arrayIndex); 111public IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(Message message) 121public IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(MessageBuffer buffer) 131public IEnumerator<KeyValuePair<MessageQuery, TItem>> GetEnumerator() 133return ((ICollection<KeyValuePair<MessageQuery, TItem>>) this.dictionary).GetEnumerator(); 165public bool Remove(KeyValuePair<MessageQuery, TItem> item) 177public override IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(Message message) 182public override IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(MessageBuffer buffer) 187abstract class SequentialResultEnumerable<TSource, TResult> : IEnumerable<KeyValuePair<MessageQuery, TResult>> 214public IEnumerator<KeyValuePair<MessageQuery, TResult>> GetEnumerator() 226class SequentialResultEnumerator : IEnumerator<KeyValuePair<MessageQuery, TResult>> 237public KeyValuePair<MessageQuery, TResult> Current 301abstract class Enumerable<TSource, TResult> : IEnumerable<KeyValuePair<MessageQuery, TResult>> 320public IEnumerator<KeyValuePair<MessageQuery, TResult>> GetEnumerator() 325protected abstract IEnumerator<KeyValuePair<MessageQuery, TResult>> GetInnerEnumerator(MessageQueryCollection collection); 332class Enumerator : IEnumerator<KeyValuePair<MessageQuery, TResult>> 335IEnumerator<KeyValuePair<MessageQuery, TResult>> innerEnumerator; 344public KeyValuePair<MessageQuery, TResult> Current 397protected override IEnumerator<KeyValuePair<MessageQuery, TResult>> GetInnerEnumerator( 411protected override IEnumerator<KeyValuePair<MessageQuery, TResult>> GetInnerEnumerator(
System\ServiceModel\Dispatcher\OperationFormatter.cs (5)
649OperationFormatterMessage(MessageHeaders headers, KeyValuePair<string, object>[] properties, OperationFormatterBodyWriter bodyWriter) 672KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[base.Properties.Count]; 673((ICollection<KeyValuePair<string, object>>)base.Properties).CopyTo(properties, 0); 773KeyValuePair<string, object>[] properties, BodyWriter bodyWriter)
System\ServiceModel\Dispatcher\QueryMatcher.cs (9)
90internal class QueryResult<TResult> : IEnumerable<KeyValuePair<MessageQuery, TResult>> 149public IEnumerator<KeyValuePair<MessageQuery, TResult>> GetEnumerator() 152Collection<KeyValuePair<MessageQuery, XPathResult>> results = 153new Collection<KeyValuePair<MessageQuery, XPathResult>>(); 162return (IEnumerator<KeyValuePair<MessageQuery, TResult>>)(object)results.GetEnumerator(); 168Collection<KeyValuePair<MessageQuery, TResult>> typedResults = 169new Collection<KeyValuePair<MessageQuery, TResult>>(); 171foreach (var result in results) 192return (IEnumerator<KeyValuePair<MessageQuery, TResult>>)typedResults.GetEnumerator();
System\ServiceModel\Dispatcher\QueryProcessor.cs (2)
442ICollection<KeyValuePair<MessageQuery, XPathResult>> resultSet; // for inverse queries that produce multiple query results 611internal ICollection<KeyValuePair<MessageQuery, XPathResult>> ResultSet
System\ServiceModel\Dispatcher\ThreadSafeMessageFilterTable.cs (18)
214bool ICollection<KeyValuePair<MessageFilter, FilterData>>.IsReadOnly 220return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).IsReadOnly; 225void ICollection<KeyValuePair<MessageFilter, FilterData>>.Add(KeyValuePair<MessageFilter, FilterData> item) 229((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).Add(item); 233bool ICollection<KeyValuePair<MessageFilter, FilterData>>.Contains(KeyValuePair<MessageFilter, FilterData> item) 237return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).Contains(item); 241void ICollection<KeyValuePair<MessageFilter, FilterData>>.CopyTo(KeyValuePair<MessageFilter, FilterData>[] array, int arrayIndex) 245((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).CopyTo(array, arrayIndex); 249bool ICollection<KeyValuePair<MessageFilter, FilterData>>.Remove(KeyValuePair<MessageFilter, FilterData> item) 253return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).Remove(item); 261return ((IEnumerable<KeyValuePair<MessageFilter, FilterData>>)this).GetEnumerator(); 265IEnumerator<KeyValuePair<MessageFilter, FilterData>> IEnumerable<KeyValuePair<MessageFilter, FilterData>>.GetEnumerator() 269return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.table).GetEnumerator();
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
129foreach (var ns in defaultNamespaces)
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (6)
96foreach (KeyValuePair<MessageFilter, TFilterData> item in filters) 170public void Add(KeyValuePair<MessageFilter, TFilterData> item) 198public bool Contains(KeyValuePair<MessageFilter, TFilterData> item) 208public void CopyTo(KeyValuePair<MessageFilter, TFilterData>[] array, int arrayIndex) 228public IEnumerator<KeyValuePair<MessageFilter, TFilterData>> GetEnumerator() 576public bool Remove(KeyValuePair<MessageFilter, TFilterData> item)
System\ServiceModel\Dispatcher\XPathMessageQueryCollection.cs (4)
21public override IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(Message message) 33return (IEnumerable<KeyValuePair<MessageQuery, TResult>>)(object) 43public override IEnumerable<KeyValuePair<MessageQuery, TResult>> Evaluate<TResult>(MessageBuffer buffer) 55return (IEnumerable<KeyValuePair<MessageQuery, TResult>>)(object)
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (1)
648foreach (KeyValuePair<Guid, RegistrationEntry> item in meshEntry.EntryTable)
System\ServiceModel\Security\SecuritySessionFilter.cs (13)
135Dictionary<UniqueId, KeyValuePair<MessageFilter, FilterData>> contextMappings; 155contextMappings = new Dictionary<UniqueId, KeyValuePair<MessageFilter, FilterData>>(); 201public void Add(KeyValuePair<MessageFilter, FilterData> item) 212public bool Contains(KeyValuePair<MessageFilter, FilterData> item) 217public void CopyTo(KeyValuePair<MessageFilter, FilterData>[] array, int arrayIndex) 220foreach (KeyValuePair<MessageFilter, FilterData> entry in this.contextMappings.Values) 227public bool Remove(KeyValuePair<MessageFilter, FilterData> item) 237public IEnumerator<KeyValuePair<MessageFilter, FilterData>> GetEnumerator() 239return ((ICollection<KeyValuePair<MessageFilter, FilterData>>)this.contextMappings.Values).GetEnumerator(); 310bool TryMatchCore(Message message, out KeyValuePair<MessageFilter, FilterData> match) 312match = default(KeyValuePair<MessageFilter, FilterData>); 345KeyValuePair<MessageFilter, FilterData> matchingPair; 384KeyValuePair<MessageFilter, FilterData> matchingPair;
System\ServiceModel\XamlIntegration\XPathMessageContextMarkupExtension.cs (1)
57foreach (KeyValuePair<string, string> ns in this.namespaces)
System\UriTemplate.cs (17)
215foreach (KeyValuePair<string, string> kvp in additionalDefaults) 559foreach (KeyValuePair<string, UriTemplateQueryValue> kvp in this.queries) 567foreach (KeyValuePair<string, string> kvp in this.additionalDefaults) 866foreach (KeyValuePair<string, string> kvp in parameters) 910foreach (KeyValuePair<string, string> kvp in this.additionalDefaults) 924foreach (KeyValuePair<string, string> kvp in this.additionalDefaults) 1018foreach (KeyValuePair<string, string> kvp in template.variables.DefaultValues) 1025foreach (KeyValuePair<string, string> kvp in template.additionalDefaults) 1084public void Add(KeyValuePair<string, string> item) 1094public bool Contains(KeyValuePair<string, string> item) 1096return (this.defaults as ICollection<KeyValuePair<string, string>>).Contains(item); 1102public void CopyTo(KeyValuePair<string, string>[] array, int arrayIndex) 1104(this.defaults as ICollection<KeyValuePair<string, string>>).CopyTo(array, arrayIndex); 1108public IEnumerator<KeyValuePair<string, string>> GetEnumerator() 1117public bool Remove(KeyValuePair<string, string> item) 1472foreach (KeyValuePair<string, string> kvp in this.owner.additionalDefaults) 1640foreach (KeyValuePair<string, string> kvp in this.owner.additionalDefaults)
System\UriTemplateHelpers.cs (2)
32foreach (KeyValuePair<string, UriTemplateQueryValue> kvp in ut.queries) 264foreach (KeyValuePair<string, UriTemplateQueryValue> kvp in array[i].queries)
System\UriTemplatePathPartiallyEquivalentSet.cs (3)
17List<KeyValuePair<UriTemplate, object>> kvps; 23this.kvps = new List<KeyValuePair<UriTemplate, object>>(); 25public List<KeyValuePair<UriTemplate, object>> Items
System\UriTemplateTable.cs (10)
35public UriTemplateTable(IEnumerable<KeyValuePair<UriTemplate, object>> keyValuePairs) 49public UriTemplateTable(Uri baseAddress, IEnumerable<KeyValuePair<UriTemplate, object>> keyValuePairs) 54internal UriTemplateTable(Uri baseAddress, IEnumerable<KeyValuePair<UriTemplate, object>> keyValuePairs, bool addTrailingSlashToBaseAddress) 131public IList<KeyValuePair<UriTemplate, object>> KeyValuePairs 377foreach (KeyValuePair<UriTemplate, object> kvp in this.templates) 565class UriTemplatesCollection : FreezableCollection<KeyValuePair<UriTemplate, object>> 572public UriTemplatesCollection(IEnumerable<KeyValuePair<UriTemplate, object>> keyValuePairs) 575foreach (KeyValuePair<UriTemplate, object> kvp in keyValuePairs) 582protected override void InsertItem(int index, KeyValuePair<UriTemplate, object> item) 587protected override void SetItem(int index, KeyValuePair<UriTemplate, object> item)
System\UriTemplateTrieNode.cs (8)
37public static UriTemplateTrieNode Make(IEnumerable<KeyValuePair<UriTemplate, object>> keyValuePairs, 43foreach (KeyValuePair<UriTemplate, object> kvp in keyValuePairs) 57static void Add(UriTemplateTrieNode root, KeyValuePair<UriTemplate, object> kvp) 371foreach (KeyValuePair<UriTemplateLiteralPathSegment, UriTemplatePathPartiallyEquivalentSet> kvp in current.finalLiteralSegment) 395foreach (KeyValuePair<UriTemplateLiteralPathSegment, UriTemplateTrieLocation> kvp in current.nextLiteralSegment) 463foreach (KeyValuePair<UriTemplate, object> kvp in pes.Items) 541void AddFinalCompoundSegment(UriTemplateCompoundPathSegment cps, KeyValuePair<UriTemplate, object> kvp) 556void AddFinalLiteralSegment(UriTemplateLiteralPathSegment lps, KeyValuePair<UriTemplate, object> kvp)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
136foreach (KeyValuePair<string, IEnumerable<string>> header in headers)
System.ServiceModel.Activities (36)
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (1)
81foreach (KeyValuePair<string, MessageQuery> item in messageQueryset)
System\ServiceModel\Activities\Dispatcher\CorrelationKeyCalculator.cs (10)
100foreach (KeyValuePair<MessageQuery, string> result in this.ExecuteSelect(target, messageToReadHeaders, select.Select, select.IsContextQuery)) 131foreach (KeyValuePair<string, MessageQueryTable<string>> item in select.SelectAdditional) 143foreach (KeyValuePair<MessageQuery, string> result in this.ExecuteSelect(target, messageToReadHeaders, item.Value, select.IsContextQuery)) 198protected abstract IEnumerable<KeyValuePair<MessageQuery, string>> ExecuteSelect(T target, Message messageToReadHeaders, 207foreach (KeyValuePair<string, string> pair in values) 225protected override IEnumerable<KeyValuePair<MessageQuery, string>> ExecuteSelect(MessageBuffer target, Message messageToReadHeaders, 257protected override IEnumerable<KeyValuePair<MessageQuery, string>> ExecuteSelect(Message target, Message messageToReadHeaders, 335foreach (KeyValuePair<string, string> keyValue in keys) 367foreach (KeyValuePair<string, string> keyValue in this.keyValues) 383foreach (KeyValuePair<string, string> targetKeyValue in target.keyValues)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (4)
78foreach (KeyValuePair<XName, object> property in readWriteValues) 90foreach (KeyValuePair<XName, object> property in writeOnlyValues) 108foreach (KeyValuePair<XName, object> pair in writeOnlyValues) 481foreach (KeyValuePair<XName, InstanceValue> metadata in this.instanceOwnerMetadata)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (2)
696foreach (KeyValuePair<XName, InstanceValue> pair in this.directory.InstanceMetadataChanges) 809foreach (KeyValuePair<XName, InstanceValue> value in instance)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
1526foreach (KeyValuePair<string, LocationInfo> mappedVariable in Controller.GetMappedVariables()) 1559foreach (KeyValuePair<string, object> output in this.workflowOutputs)
System\ServiceModel\Activities\InitializeCorrelation.cs (1)
58foreach ( KeyValuePair<string, InArgument<string>> pair in this.CorrelationData )
System\ServiceModel\Activities\InternalSendMessage.cs (2)
57KeyValuePair<ObjectCacheItem<ChannelFactoryReference>, SendMessageChannelCache> lastUsedFactoryCacheItem; 1367KeyValuePair<ObjectCacheItem<ChannelFactoryReference>, SendMessageChannelCache> localLastUsedCacheItem = this.lastUsedFactoryCacheItem;
System\ServiceModel\Activities\MessagingActivityHelper.cs (2)
60foreach (KeyValuePair<string, object> item in executionProperties) 228foreach (KeyValuePair<string, string> pair in context1)
System\ServiceModel\Activities\ReceiveParametersContent.cs (4)
77foreach (KeyValuePair<string, OutArgument> pair in this.Parameters) 109foreach (KeyValuePair<string, OutArgument> pair in this.Parameters) 121foreach (KeyValuePair<string, OutArgument> parameter in this.Parameters) 130foreach (KeyValuePair<string, OutArgument> parameter in this.Parameters)
System\ServiceModel\Activities\SendParametersContent.cs (4)
93foreach (KeyValuePair<string, InArgument> pair in this.Parameters) 125foreach (KeyValuePair<string, InArgument> pair in this.Parameters) 139foreach (KeyValuePair<string, InArgument> parameter in this.Parameters) 149foreach (KeyValuePair<string, InArgument> parameter in this.Parameters)
System\ServiceModel\Activities\SerializableInstanceKey.cs (2)
26foreach (KeyValuePair<XName, InstanceValue> pair in instanceKey.Metadata) 76foreach (KeyValuePair<XName, SerializableInstanceValue> pair in this.metadata)
System\ServiceModel\Activities\WorkflowService.cs (1)
304foreach (KeyValuePair<Type, IList<Constraint>> constrants in source.AdditionalConstraints)
System\ServiceModel\MessageQuerySet.cs (1)
53foreach (KeyValuePair<TKey, TValue> vkpair in source)
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\MessageExtensionMethods.cs (1)
119foreach (KeyValuePair<string, object> property in properties)
System.ServiceModel.Internals (22)
System\Runtime\Collections\NullableKeyDictionary.cs (8)
140public void Add(KeyValuePair<TKey, TValue> item) 152public bool Contains(KeyValuePair<TKey, TValue> item) 171public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) 180public bool Remove(KeyValuePair<TKey, TValue> item) 201public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() 203IEnumerator<KeyValuePair<TKey, TValue>> innerEnumerator = this.innerDictionary.GetEnumerator() as IEnumerator<KeyValuePair<TKey, TValue>>; 218return ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
System\Runtime\Collections\ObjectCache.cs (3)
234void GatherExpiredItems(ref List<KeyValuePair<TKey, Item>> expiredItems, bool calledFromTimer) 251foreach (KeyValuePair<TKey, Item> cacheItem in this.cacheItems) 280List<KeyValuePair<TKey, Item>> itemsToClose = null;
System\Runtime\Collections\OrderedDictionary.cs (6)
29foreach (KeyValuePair<TKey, TValue> pair in dictionary) 119public void Add(KeyValuePair<TKey, TValue> item) 139public bool Contains(KeyValuePair<TKey, TValue> item) 161public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) 186public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() 199public bool Remove(KeyValuePair<TKey, TValue> item)
System\Runtime\ReadOnlyDictionaryInternal.cs (5)
76public void Add(KeyValuePair<TKey, TValue> item) 86public bool Contains(KeyValuePair<TKey, TValue> item) 95public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) 100public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() 115public bool Remove(KeyValuePair<TKey, TValue> item)
System.ServiceModel.Routing (5)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (5)
264public void Add(KeyValuePair<MessageFilter, TFilterData> item) 275public bool Contains(KeyValuePair<MessageFilter, TFilterData> item) 280public void CopyTo(KeyValuePair<MessageFilter, TFilterData>[] array, int arrayIndex) 285public bool Remove(KeyValuePair<MessageFilter, TFilterData> item) 290public IEnumerator<KeyValuePair<MessageFilter, TFilterData>> GetEnumerator()
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
87foreach (KeyValuePair<string, List<string>> entry in bindingList) 423foreach (KeyValuePair<string, List<string>> entry in bindingList)
System.ServiceModel.Web (10)
System\ServiceModel\Description\WebHttpBehavior.cs (1)
908static void HideRequestUriTemplateParameters(OperationDescription operationDescription, Dictionary<int, string> pathMapping, Dictionary<int, KeyValuePair<string, Type>> queryMapping, Effect effect)
System\ServiceModel\Dispatcher\HelpPage.cs (2)
88public static IEnumerable<KeyValuePair<UriTemplate, object>> GetOperationTemplatePairs() 90return new KeyValuePair<UriTemplate, object>[]
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (3)
23internal Dictionary<int, KeyValuePair<string, Type>> queryMapping; 136out Dictionary<int, KeyValuePair<string, Type>> queryMapping, 144queryMapping = new Dictionary<int, KeyValuePair<string, Type>>();
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (2)
25internal Dictionary<int, KeyValuePair<string, Type>> queryMapping; 94foreach (KeyValuePair<string, Type> kvp in this.queryMapping.Values)
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (2)
259foreach (KeyValuePair<string, UriTemplateTable> pair in methodSpecificTables) 338foreach (KeyValuePair<string, UriTemplateTable> pair in methodSpecificTables)
System.Web (81)
Compilation\BuildManagerHost.cs (1)
314KeyValuePair<String, String> pair = e.Current;
Compilation\BuildProvidersCompiler.cs (2)
797foreach (var pair in buildErrors) { 800foreach (var pair in buildResults) {
Configuration\FolderLevelBuildProviderCollection.cs (1)
100foreach (var pair in _buildProviderMappings) {
Hosting\ApplicationManager.cs (2)
533foreach (KeyValuePair <string, LockableAppDomainContext> p in oldTable) { 1220foreach (var entry in appDomainAdditionalData)
Hosting\HostingEnvironment.cs (3)
92public KeyValuePair<string, bool>[] ClrQuirksSwitches { 472private static void SetClrQuirksSwitches(KeyValuePair<string, bool>[] switches) { 493foreach (var sw in switches) {
Hosting\ProcessHost.cs (3)
286private static KeyValuePair<string, ExceptionDispatchInfo> _customLoaderStartupError; 1176var copiedError = _customLoaderStartupError; 1178_customLoaderStartupError = default(KeyValuePair<string, ExceptionDispatchInfo>);
ModelBinding\CollectionModelBinderUtil.cs (2)
23public static void CreateOrReplaceDictionary<TKey, TValue>(ModelBindingContext bindingContext, IEnumerable<KeyValuePair<TKey, TValue>> incomingElements, Func<IDictionary<TKey, TValue>> creator) { 31foreach (var element in incomingElements) {
ModelBinding\DictionaryHelpers.cs (2)
8public static IEnumerable<KeyValuePair<string, TValue>> FindKeysWithPrefix<TValue>(IDictionary<string, TValue> dictionary, string prefix) { 14foreach (var entry in dictionary) {
ModelBinding\DictionaryModelBinder`2.cs (2)
4public class DictionaryModelBinder<TKey, TValue> : CollectionModelBinder<KeyValuePair<TKey, TValue>> { 6protected override bool CreateOrReplaceCollection(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext, IList<KeyValuePair<TKey, TValue>> newCollection) {
ModelBinding\DictionaryValueProvider`1.cs (1)
21foreach (var entry in dictionary) {
ModelBinding\KeyValuePairModelBinder`2.cs (1)
21ModelBinderUtil.ValidateBindingContext(bindingContext, typeof(KeyValuePair<TKey, TValue>), true /* allowNullModel */);
ModelBinding\KeyValuePairModelBinderProvider.cs (1)
13return ModelBinderUtil.GetPossibleBinderInstance(bindingContext.ModelType, typeof(KeyValuePair<,>) /* supported model type */, typeof(KeyValuePairModelBinder<,>) /* binder type */);
ModelBinding\ModelBinderDictionary.cs (5)
71public void Add(KeyValuePair<Type, IModelBinder> item) { 85public bool Contains(KeyValuePair<Type, IModelBinder> item) { 93public void CopyTo(KeyValuePair<Type, IModelBinder>[] array, int arrayIndex) { 134public IEnumerator<KeyValuePair<Type, IModelBinder>> GetEnumerator() { 138public bool Remove(KeyValuePair<Type, IModelBinder> item) {
ModelBinding\ModelStateDictionary.cs (7)
20foreach (var entry in dictionary) { 66public void Add(KeyValuePair<string, ModelState> item) { 86public bool Contains(KeyValuePair<string, ModelState> item) { 94public void CopyTo(KeyValuePair<string, ModelState>[] array, int arrayIndex) { 98public IEnumerator<KeyValuePair<string, ModelState>> GetEnumerator() { 130foreach (var entry in dictionary) { 135public bool Remove(KeyValuePair<string, ModelState> item) {
ModelBinding\MutableObjectModelBinder.cs (1)
171foreach (var entry in complexModel.Results) {
Routing\ParsedRoute.cs (5)
82foreach (var newValue in values) { 91foreach (var currentValue in currentValues) { 140foreach (var defaultValue in otherDefaultValues) { 306foreach (var constraintsItem in constraints) { 483foreach (var defaultValue in defaultValues) {
Routing\Route.cs (4)
111foreach (var value in values) { 117foreach (var prop in DataTokens) { 144foreach (var prop in DataTokens) { 177foreach (var constraintsItem in Constraints) {
Routing\RouteCollection.cs (1)
344foreach (KeyValuePair<string, RouteBase> namedRoute in _namedMap) {
Routing\RouteValueDictionary.cs (16)
117void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item) { 118((ICollection<KeyValuePair<string, object>>)_dictionary).Add(item); 122bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item) { 123return ((ICollection<KeyValuePair<string, object>>)_dictionary).Contains(item); 127void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex) { 128((ICollection<KeyValuePair<string, object>>)_dictionary).CopyTo(array, arrayIndex); 132bool ICollection<KeyValuePair<string, object>>.IsReadOnly { 134return ((ICollection<KeyValuePair<string, object>>)_dictionary).IsReadOnly; 139bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item) { 140return ((ICollection<KeyValuePair<string, object>>)_dictionary).Remove(item); 146IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() {
State\SessionStateModule.cs (1)
1084((ICollection<KeyValuePair<string, int>>)s_queuedRequestsNumPerSession).Remove(new KeyValuePair<string,int>(_rqId, 0));
UI\TemplateControl.cs (1)
436foreach (var entry in syncEvents) {
UI\WebControls\Content.cs (1)
110foreach (var pair in preservedAttributes) {
UI\WebControls\MethodParametersDictionary.cs (16)
73foreach (KeyValuePair<string, MethodParameterValue> kvp in InnerDictionary) { 155void ICollection<KeyValuePair<string, MethodParameterValue>>.Clear() { 159bool ICollection<KeyValuePair<string, MethodParameterValue>>.IsReadOnly { 161return ((ICollection<KeyValuePair<string, MethodParameterValue>>)InnerDictionary).IsReadOnly; 165void ICollection<KeyValuePair<string, MethodParameterValue>>.Add(KeyValuePair<string, MethodParameterValue> item) { 169bool ICollection<KeyValuePair<string, MethodParameterValue>>.Contains(KeyValuePair<string, MethodParameterValue> item) { 170return ((ICollection<KeyValuePair<string, MethodParameterValue>>)InnerDictionary).Contains(item); 173void ICollection<KeyValuePair<string, MethodParameterValue>>.CopyTo(KeyValuePair<string, MethodParameterValue>[] array, int arrayIndex) { 174((ICollection<KeyValuePair<string, MethodParameterValue>>)InnerDictionary).CopyTo(array, arrayIndex); 177bool ICollection<KeyValuePair<string, MethodParameterValue>>.Remove(KeyValuePair<string, MethodParameterValue> item) { 178return ((ICollection<KeyValuePair<string, MethodParameterValue>>)InnerDictionary).Remove(item); 183public IEnumerator<KeyValuePair<string, MethodParameterValue>> GetEnumerator() {
UI\WebControls\ValidationSummary.cs (1)
288foreach (KeyValuePair<string, ModelState> pair in modelState) {
UI\WebParts\PersonalizationStateInfoCollection.cs (1)
140foreach(KeyValuePair<Key,int> de in _indices) {
System.Web.DynamicData (4)
DynamicData\ControlFilterExpression.cs (1)
139foreach (var entry in nameColumnMapping) {
DynamicData\DynamicControl.cs (1)
196foreach (var entry in _attributes) {
DynamicData\DynamicHyperLink.cs (2)
220foreach (var entry in _extraRouteParams) { 229foreach (var pk in table.GetPrimaryKeyDictionary(row)) {
System.Web.Entity (5)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
103foreach (var newKey in newKeyValues) 121reference.EntityKey = new EntityKey(EntityDataSourceUtil.GetQualifiedEntitySetName(End.EntitySet), (IEnumerable<KeyValuePair<string, object>>)newKeyValues);
System\Data\WebControls\EntityDataSourceWrapper.cs (3)
117var referenceList = new List<KeyValuePair<EntityDataSourceReferenceKeyColumn, object>>(); 178List<KeyValuePair<EntityDataSourceReferenceKeyColumn, object>> referenceList, bool overwriteSameValue) 188foreach (KeyValuePair<EntityDataSourceReferenceKeyColumn, object> reference in group)
System.Web.Extensions (30)
ApplicationServices\ProfileService.cs (2)
136foreach (KeyValuePair<string, object> entry in allowedGet) { 175foreach (KeyValuePair<string, object> kvp in values) {
ClientServices\Providers\ClientSettingsProvider.cs (1)
545foreach(KeyValuePair<string,object> de in ret) {
Profile\ProfileService.cs (2)
56foreach(KeyValuePair<string,object> entry in allowedGet) { 93foreach(KeyValuePair<string, object> entry in values) {
Script\Services\WebServiceMethodData.cs (1)
188foreach (KeyValuePair<string, object> pair in rawParams) {
UI\PageRequestManager.cs (1)
762foreach (KeyValuePair<String, String> entry in hiddenFields) {
UI\ProfileServiceManager.cs (1)
225foreach(KeyValuePair<string, SortedList<string, object>> group in profileGroups) {
UI\ScriptComponentDescriptor.cs (3)
173foreach (KeyValuePair<string, string> e in _events) { 199foreach (KeyValuePair<string, Expression> p in _properties) { 232foreach (KeyValuePair<string, Expression> p in _properties) {
UI\ScriptResourceAttribute.cs (1)
236foreach (KeyValuePair<String,String> res in resources) {
UI\WebControls\Expressions\PropertyExpression.cs (1)
19foreach (KeyValuePair<string, object> pair in values) {
UI\WebControls\QueryableDataSourceHelper.cs (3)
136foreach (KeyValuePair<string, object> parameter in parameters) { 181foreach (KeyValuePair<string, object> parameter in whereParameters) { 205foreach (KeyValuePair<string, object> parameter in orderByParameters) {
Util\OrderedDictionary.cs (14)
87public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() { 115bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { 117return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).IsReadOnly; 121void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) { 125bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) { 126return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).Contains(item); 129void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) { 130((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex); 133bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) { 134bool removed = ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).Remove(item);
System.Windows.Forms (4)
misc\GDI\WindowsGraphicsCacheManager.cs (4)
53private static List<KeyValuePair<Font, WindowsFont>> windowsFontCache; 79private static List<KeyValuePair<Font, WindowsFont>> WindowsFontCache 86windowsFontCache = new List<KeyValuePair<Font, WindowsFont>>(CacheSize); 183KeyValuePair<Font, WindowsFont> newEntry = new KeyValuePair<Font, WindowsFont>(font, winFont);
System.Workflow.Activities (5)
Rules\Parser\Parser.cs (2)
985foreach (KeyValuePair<string, Symbol> kvp in globalUniqueSymbols) 999foreach (KeyValuePair<string, Symbol> kvp in localUniqueSymbols)
Rules\Parser\Scanner.cs (1)
94foreach (KeyValuePair<string, KeywordInfo> kvp in keywordMap)
Rules\References.cs (1)
68foreach (KeyValuePair<string, object> pair in symbols)
StateMachineSubscriptionManager.cs (1)
334foreach (KeyValuePair<IComparable, StateMachineSubscription> dictionaryEntry in this.Subscriptions)
System.Workflow.ComponentModel (8)
AuthoringOM\ActivityExecutionContext.cs (1)
490foreach (KeyValuePair<string, GrantedLock> grantedLockEntry in grantedLocks)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (2)
876foreach (KeyValuePair<CodeCompileUnit, EventHandler> entry in this.needRefreshCompileUnits) 880foreach (KeyValuePair<CodeCompileUnit, EventHandler> entry in needRefreshCompileUnits2)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
196foreach (KeyValuePair<object, Exception> entry in typeProvider.TypeLoadErrors)
AuthoringOM\DependencyObject.cs (1)
532foreach (KeyValuePair<DependencyProperty, object> keyValuePair in this.DependencyPropertyValues)
AuthoringOM\Design\ActivityDesigner.cs (1)
802foreach (KeyValuePair<string, string> rule in rules)
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
51foreach (KeyValuePair<DependencyProperty, object> kvp in instanceProperties)
AuthoringOM\Serializer\DependencyStoreSurrogate.cs (1)
25foreach (KeyValuePair<DependencyProperty, object> kvp in store)
System.Workflow.Runtime (54)
Hosting\SharedConnectionWorkflowTransactionService.cs (1)
140foreach (KeyValuePair<Transaction, SharedConnectionInfo> kvp in this.transactionConnectionTable)
RTTrackingProfile.cs (6)
145foreach (KeyValuePair<string, List<ActivityTrackPointCacheItem>> kvp in runtimeProfile._activities) 154foreach (KeyValuePair<string, List<ActivityTrackPointCacheItem>> kvp in runtimeProfile._dynamicActivities) 163foreach (KeyValuePair<string, List<UserTrackPoint>> kvp in runtimeProfile._user) 172foreach (KeyValuePair<string, List<UserTrackPoint>> kvp in runtimeProfile._dynamicUser) 392foreach (KeyValuePair<string, List<ActivityTrackPointCacheItem>> kvp in _dynamicActivities) 399foreach (KeyValuePair<string, List<UserTrackPoint>> kvp in _dynamicUser)
System\Activities\Statements\Interop.cs (2)
446foreach (KeyValuePair<string, object> output in outputs) 466foreach (KeyValuePair<string, Argument> parameter in this.properties)
System\Activities\Statements\InteropEnvironment.cs (1)
271foreach (KeyValuePair<Bookmark, IComparable> entry in this.executor.BookmarkQueueMap)
System\Activities\Statements\InteropExecutor.cs (1)
469foreach (KeyValuePair<string, object> input in inputs)
Tracking.cs (2)
222foreach (KeyValuePair<Guid, WeakReference> kvp in _listeners) 960foreach (KeyValuePair<string, Type> replacement in replacements)
Tracking\SqlTrackingService.cs (29)
1395List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record1.Annotations.Count + (null == record2 ? 0 : record2.Annotations.Count)); 1595List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(10); 1596List<KeyValuePair<long, TrackingDataItem>> items = new List<KeyValuePair<long, TrackingDataItem>>(10); 1714List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(10); 1715List<KeyValuePair<long, TrackingDataItem>> items = new List<KeyValuePair<long, TrackingDataItem>>(10); 1793private void BatchExecuteInsertTrackingDataItems(long internalId, char eventTypeId, IList<KeyValuePair<long, TrackingDataItem>> items, DbCommand command) 1806List<KeyValuePair<long, TrackingDataItem>> batch = new List<KeyValuePair<long, TrackingDataItem>>(_dataItemBatchSize); 1807foreach (KeyValuePair<long, TrackingDataItem> kvp in items) 1822private void ExecuteInsertTrackingDataItems(long internalId, char eventTypeId, IList<KeyValuePair<long, TrackingDataItem>> items, DbCommand command) 1842foreach (KeyValuePair<long, TrackingDataItem> kvp in items) 1876List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(_dataItemAnnotationBatchSize); 1879foreach (KeyValuePair<long, TrackingDataItem> kvp in items) 1900private void ExecuteInsertAnnotation(long internalId, IList<KeyValuePair<long, string>> annotations, DbCommand command) 1918foreach (KeyValuePair<long, string> kvp in annotations) 1931private void BatchExecuteInsertEventAnnotation(long internalId, char eventTypeId, IList<KeyValuePair<long, string>> annotations, DbCommand command) 1945List<KeyValuePair<long, string>> batch = new List<KeyValuePair<long, string>>(_eventAnnotationBatchSize); 1946foreach (KeyValuePair<long, string> kvp in annotations) 1961private void ExecuteInsertEventAnnotation(long internalId, char eventTypeId, IList<KeyValuePair<long, string>> annotations, DbCommand command) 1982foreach (KeyValuePair<long, string> kvp in annotations) 2085List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record.Annotations.Count);
Tracking\SqlTrackingWorkflowInstance.cs (1)
544foreach (KeyValuePair<long, WorkflowTrackingRecord> kvp in inst)
WorkBatch.cs (5)
130foreach (KeyValuePair<IPendingWork, SortedList<long, object>> item in batch._pendingWorkCollection.WorkItems) 134foreach (KeyValuePair<long, object> kvp in newItems) 202foreach (KeyValuePair<IPendingWork, SortedList<long, object>> workItem in this.WorkItems) 248foreach (KeyValuePair<IPendingWork, SortedList<long, object>> workItem in Items) 259foreach (KeyValuePair<IPendingWork, SortedList<long, object>> workItem in Items)
WorkflowQueuingService.cs (5)
337KeyValuePair<IComparable, EventQueueState> pair = (KeyValuePair<IComparable, EventQueueState>)q.Dequeue(); 472foreach (KeyValuePair<IComparable, EventQueueState> mergeItem in srcPersistedQueueStates) 496foreach (KeyValuePair<IComparable, EventQueueState> modifiedItem in modifiedItems) 716foreach (KeyValuePair<IComparable, EventQueueState> kv in persistedQueueStates)
WorkflowStateRollbackService.cs (1)
114foreach (KeyValuePair<object, WorkBatch> batch in this.workflowExecutor.BatchCollection)
System.WorkflowServices (27)
System\ServiceModel\Description\ServiceDescriptionContext.cs (3)
17Dictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior> workflowOperationBehaviors; 23this.workflowOperationBehaviors = new Dictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior>(); 54internal IDictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior> WorkflowOperationBehaviors
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
316foreach (KeyValuePair<string, string> contextElement in this.outgoingContextProperties)
System\ServiceModel\SerializableReadOnlyDictionary.cs (7)
32public SerializableReadOnlyDictionary(params KeyValuePair<K, V>[] entries) 36foreach (KeyValuePair<K, V> pair in entries) 87public void Add(KeyValuePair<K, V> item) 95public bool Contains(KeyValuePair<K, V> item) 103public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex) 107public IEnumerator<KeyValuePair<K, V>> GetEnumerator() 119public bool Remove(KeyValuePair<K, V> item)
System\Workflow\Activities\ReceiveActivity.cs (7)
712KeyValuePair<Type, string> operationKey = 1359IList<KeyValuePair<int, string>> inputParameters; 1364IList<KeyValuePair<int, string>> outputParameters; 1369outputParameters = new List<KeyValuePair<int, string>>(); 1370inputParameters = new List<KeyValuePair<int, string>>(); 1461KeyValuePair<int, string> parameterInfo = outputParameters[index]; 1510KeyValuePair<int, string> parameterInfo = inputParameters[index];
System\Workflow\Activities\SendActivity.cs (6)
581IList<KeyValuePair<int, string>> inputParameters; 584IList<KeyValuePair<int, string>> outputParameters; 589outputParameters = new List<KeyValuePair<int, string>>(); 590inputParameters = new List<KeyValuePair<int, string>>(); 667KeyValuePair<int, string> parameterInfo = inputParameters[index]; 703KeyValuePair<int, string> parameterInfo = outputParameters[index];
System\Workflow\Activities\ServiceOperationHelpers.cs (1)
287KeyValuePair<Type, string> operationKey =
System\Workflow\Runtime\Hosting\ChannelManager.cs (2)
208KeyValuePair<string, Type> endpointData; 212endpointData = (KeyValuePair<string, Type>) this.endpointMappings[address];
System.Xml (8)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
422foreach (KeyValuePair<string,string> pair in namespaceDecls) {
System\Xml\Schema\SchemaInfo.cs (2)
299foreach(KeyValuePair<XmlQualifiedName, SchemaElementDecl> entry in sinfo.elementDecls) { 304foreach(KeyValuePair<XmlQualifiedName, SchemaElementDecl> entry in sinfo.elementDeclsByType) {
System\Xml\Schema\XmlSchemaValidator.cs (1)
1795foreach (KeyValuePair<string,string> pair in namespaceDecls) {
System\Xml\Serialization\CodeGenerator.cs (1)
2573foreach (var item in locals) {
System\Xml\Serialization\Types.cs (2)
1014foreach (KeyValuePair<string, MemberInfo> pair in memberInfos) 1029foreach (KeyValuePair<string, MemberInfo> pair in replaceList)
System\Xml\XPath\XPathNavigator.cs (1)
1656foreach ( KeyValuePair<string,string> pair in dictionary ) {
WindowsBase (19)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (3)
857KeyValuePair<PackageXmlEnum, Object>[] entriesToNullify = null; 860entriesToNullify = new KeyValuePair<PackageXmlEnum, Object>[_propertyDictionary.Count]; 863foreach (KeyValuePair<PackageXmlEnum, Object> entry in _propertyDictionary)
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (5)
178foreach (KeyValuePair<int, LocalizedNameDescriptionPair> nameDescriptionEntry in localizedNameDescriptionDictionary) 187foreach (KeyValuePair<string, string> applicationSpecificDataEntry in applicationSpecificDataDictionary) 357Nullable<KeyValuePair<string, string>> appSpecificDataEntry = GetApplicationSpecificData(appDataIndex); 728private Nullable<KeyValuePair<string, string>> GetApplicationSpecificData(int index) 785KeyValuePair<string, string> result = new KeyValuePair<string, string>(name, value);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
149foreach (KeyValuePair<string, string> pair in _namespaceMap)
Base\System\Windows\NameScope.cs (10)
199IEnumerator<KeyValuePair<string, object>> GetEnumerator() 212IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() 244public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex) 258public bool Remove(KeyValuePair<string, object> item) 272public void Add(KeyValuePair<string, object> item) 286public bool Contains(KeyValuePair<string, object> item) 403class Enumerator : IEnumerator<KeyValuePair<string, object>> 422public KeyValuePair<string, object> Current 428return default(KeyValuePair<string, object>);
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (2)
79KeyValuePair<string, AttributeParameterData> propertyInfo = ReadAttributeProperty(reader.ReadSubtree(), namespaceTable, rootNamespace); 90private static KeyValuePair<string, AttributeParameterData> ReadAttributeProperty(XamlReader reader, NamespaceTable namespaceTable, string rootNamespace)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
226foreach (KeyValuePair<string, AttributeParameterData> propertyEntry in attrib.Properties)
Microsoft\Build\Tasks\Xaml\XamlBuildTypeInspectionExtensionContext.cs (1)
36foreach (KeyValuePair<string, ITaskItem> markupItemByTypeName in markupItemsByTypeName)