1212 references to Value
ComSvcConfig (4)
Tool.cs (4)
485IEnumerator<KeyValuePair<Guid, Dictionary<Guid, List<EndpointConfig>>>> enumerateComponents = enumerateApps.Current.Value.GetEnumerator(); 510IEnumerator<KeyValuePair<Guid, List<EndpointConfig>>> enumerateInterfaces = enumerateComponents.Current.Value.GetEnumerator(); 521foreach (EndpointConfig config in enumerateInterfaces.Current.Value) 535foreach (EndpointConfig config in enumerateInterfaces.Current.Value)
mscorlib (66)
system\Collections\Concurrent\ConcurrentDictionary.cs (6)
286if (!TryAddInternal(pair.Key, pair.Value, false, false, out dummy)) 1408((IDictionary<TKey, TValue>)this).Add(keyValuePair.Key, keyValuePair.Value); 1427return EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value); 1458return TryRemoveInternal(keyValuePair.Key, out throwAwayValue, true, keyValuePair.Value); 2160get { return new DictionaryEntry(m_enumerator.Current.Key, m_enumerator.Current.Value); } 2170get { return m_enumerator.Current.Value; }
system\collections\concurrent\OrderablePartitioner.cs (1)
262return m_source.Current.Value;
system\collections\generic\dictionary.cs (9)
114Add(pair.Key, pair.Value); 196Add(keyValuePair.Key, keyValuePair.Value); 201if( i >= 0 && EqualityComparer<TValue>.Default.Equals(entries[i].value, keyValuePair.Value)) { 209if( i >= 0 && EqualityComparer<TValue>.Default.Equals(entries[i].value, keyValuePair.Value)) { 428Insert(array[i].Key, array[i].Value, true); 751return new System.Collections.DictionaryEntry(current.Key, current.Value); 753return new KeyValuePair<TKey, TValue>(current.Key, current.Value); 773return new DictionaryEntry(current.Key, current.Value); 793return current.Value;
system\collections\generic\keyvaluepair.cs (2)
50if( Value != null) { 51s.Append(Value.ToString());
system\collections\objectmodel\readonlydictionary.cs (4)
260dictEntryArray[index++] = new DictionaryEntry(item.Key, item.Value); 271objects[index++] = new KeyValuePair<TKey, TValue>(item.Key, item.Value); 311get { return new DictionaryEntry(m_enumerator.Current.Key, m_enumerator.Current.Value); } 319get { return m_enumerator.Current.Value; }
system\diagnostics\eventing\eventsource.cs (6)
5708Array.Sort(keyValues, (x, y) => (0x7FFFFFFF & (tickNow - y.Value)) - (0x7FFFFFFF & (tickNow - x.Value))); 6167channelMask[item.Key] = item.Value.Keywords; 6335sortedChannels.Sort((p1, p2) => -Comparer<ulong>.Default.Compare(p1.Value.Keywords, p2.Value.Keywords)); 6339ChannelInfo channelInfo = kvpair.Value;
System\Diagnostics\Eventing\TraceLogging\NameInfo.cs (1)
62return this.Compare(key.Key, key.Value & Statics.EventTagsMask);
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (2)
1001var val = value.Value; 1011serializedType.Add("Value", this.valueInfo.GetData(keyValuePair.Value));
system\resources\resourcewriter.cs (1)
403sortedResources.Add(entry.Key, entry.Value);
system\runtime\interopservices\windowsruntime\clrikeyvaluepairimpl.cs (1)
36get { return _pair.Value; }
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (1)
207value = items[index].Value;
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (2)
47array[i++] = mapping.Value; 125get { return enumeration.Current.Value; }
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
220if (registration.Value == (T)(object)handler)
system\runtime\interopservices\windowsruntime\imapviewtoireadonlydictionaryadapter.cs (1)
318get { return enumeration.Current.Value; }
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (2)
87_this_dictionary.Add(item.Key, item.Value); 129return EqualityComparer<V>.Default.Equals(value, item.Value);
system\security\policy\evidence.cs (7)
124EvidenceTypeDescriptor cloneDescriptor = evidenceType.Value; 1034if (evidenceType.Value != null && evidenceType.Value.HostEvidence != null) 1036generatedEvidence[evidenceType.Key] = evidenceType.Value.HostEvidence; 1481if (evidenceType.Value != null) 1483IDelayEvaluatedEvidence hostEvidence = evidenceType.Value.HostEvidence as IDelayEvaluatedEvidence; 1489IDelayEvaluatedEvidence assemblyEvidence = evidenceType.Value.AssemblyEvidence as IDelayEvaluatedEvidence;
system\security\policy\hash.cs (1)
507hashElement.AddAttribute("value", Hex.EncodeHexString(hashValue.Value));
system\threading\asynclocal.cs (17)
381i == 0 ? new ThreeElementAsyncLocalValueMap(_keyValues[1].Key, _keyValues[1].Value, _keyValues[2].Key, _keyValues[2].Value, _keyValues[3].Key, _keyValues[3].Value) : 382i == 1 ? new ThreeElementAsyncLocalValueMap(_keyValues[0].Key, _keyValues[0].Value, _keyValues[2].Key, _keyValues[2].Value, _keyValues[3].Key, _keyValues[3].Value) : 383i == 2 ? new ThreeElementAsyncLocalValueMap(_keyValues[0].Key, _keyValues[0].Value, _keyValues[1].Key, _keyValues[1].Value, _keyValues[3].Key, _keyValues[3].Value) : 384(IAsyncLocalValueMap)new ThreeElementAsyncLocalValueMap(_keyValues[0].Key, _keyValues[0].Value, _keyValues[1].Key, _keyValues[1].Value, _keyValues[2].Key, _keyValues[2].Value); 420many[pair.Key] = pair.Value; 432value = pair.Value; 458map[pair.Key] = pair.Value; 481multi.UnsafeStore(index++, pair.Key, pair.Value); 494map[pair.Key] = pair.Value;
system\threading\Tasks\Parallel.cs (1)
3349TSource value = kvp.Value;
PresentationBuildTasks (1)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
151if (pair.Value == oldNamespace)
PresentationCore (21)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (3)
601if (String.Compare(localizedFamilyName.Value, familyName, StringComparison.OrdinalIgnoreCase) == 0) 633string currentFontName = name.Value.ToUpper(CultureInfo.InvariantCulture); 656string currentFontName = name.Value.ToUpper(CultureInfo.InvariantCulture);
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (1)
64convertedDictionary.Add(language, pair.Value);
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (11)
105item.Value, 128return item.Value != null && item.Value.Equals(GetValue(item.Key)); 181return item.Value != null && RemoveValue(item.Key, item.Value); 214typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 230array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 502result[i++] = pair.Value; 586return new SC.DictionaryEntry(entry.Key, entry.Value); 612return new SC.DictionaryEntry(entry.Key, entry.Value); 628return GetCurrentEntry().Value;
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (5)
100Add(item.Key, item.Value); 180typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 196array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 428return new SC.DictionaryEntry(entry.Key, entry.Value); 444return GetCurrentEntry().Value;
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
522adjustedLanguageFaceNames[XmlLanguage.GetLanguage(pair.Key.IetfLanguageTag)] = pair.Value;
PresentationFramework (43)
src\Framework\MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (5)
187annotations.Add(annotKV.Key, annotKV.Value.Annotation); 217if (annotKV.Value.Dirty) 219annotations.Add(annotKV.Value.Annotation); 233if (annotKV.Value.Dirty) 235annotKV.Value.Dirty = false;
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
516if (pair.Value.FormattingTag == formattingTag)
src\Framework\MS\Internal\Helper.cs (3)
788return itemValues[i].Value; 922value = itemValues[i].Value; 1067ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (2)
97if ( pair.Value.CanPaste(dataObject) ) 208ClipboardData data = pair.Value;
src\Framework\MS\Internal\WeakDictionary.cs (2)
271this.Add(item.Key, item.Value); 286if (object.Equals(_hashTable[item.Key], item.Value))
src\Framework\System\Windows\Annotations\LocatorPart.cs (3)
125if (k_v.Value != otherValue) 154newPart.NameValuePairs.Add(k_v.Key, k_v.Value); 419res += "@" + AnnotationXmlConstants.Attributes.ItemName + "=\"" + k_v.Key + "\" and @" + AnnotationXmlConstants.Attributes.ItemValue + "=\"" + k_v.Value + "\"]";
src\Framework\System\Windows\Annotations\LocatorPartList.cs (1)
208writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemValue, pair.Value);
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (4)
827if (item.Value != null) 829foreach (Uri name in item.Value) 883if (item.Value != null) 885foreach (Uri name in item.Value)
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
621return pair.Value; 707WeakReference weakRef = dictionaryEntry.Value as WeakReference; 731WeakReference weakRef = keyValuePair.Value as WeakReference;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6845kvp.Value.TrackValue();
src\Framework\System\Windows\Controls\Grid.cs (4)
2888if (x.Value < y.Value) 2892else if (x.Value > y.Value)
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
938GetPageAsyncRequest asyncRequest = ienum.Current.Value;
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
1270GetPageAsyncRequest asyncRequest = ienum.Current.Value;
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
606foreach (string filePath in items.Value)
src\Framework\System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
70if (pair.Value == xamlNs)
src\Framework\System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (3)
326DictionaryEntry entry = new DictionaryEntry(pair.Key, pair.Value); 426pair.Value == null ? 428new BamlLocalizableResource(pair.Value);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1448yield return new Mapping(mapping.Key, mapping.Value);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
338newDict.Add(kvp.Key, kvp.Value);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
625return handlePair.Value(message, wParam, lParam, out handled);
src\Framework\System\Windows\SystemResources.cs (2)
217ResourceDictionaryInfo info = dictionary.Value.ThemedDictionaryInfo; 248ResourceDictionaryInfo info = dictionary.Value.GenericDictionaryInfo;
src\Framework\System\Windows\VisualStateManager.cs (2)
444Timeline toAnimation = GenerateToAnimation(root, pair.Value, easingFunction, true); 461Timeline fromAnimation = GenerateFromAnimation(root, pair.Value, easingFunction);
System (33)
compmod\system\codedom\compiler\CodeDomConfigurationHandler.cs (1)
309compilerInfo._providerOptions[kvp.Key] = kvp.Value;
compmod\system\collections\generic\sorteddictionary.cs (17)
57if( keyValuePair.Value == null) { 58return node.Item.Value == null; 61return EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value); 71if( EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value)) { 95return node.Item.Value; 185if(node.Item.Value == null) { 196if(valueComparer.Equals(node.Item.Value, value)) { 236value = node.Item.Value; 404return new DictionaryEntry(Current.Key, Current.Value); 406return new KeyValuePair<TKey, TValue>(Current.Key, Current.Value); 428return Current.Value; 438return new DictionaryEntry(Current.Key, Current.Value); 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;}); 732return dictEnum.Current.Value;
compmod\system\collections\generic\sortedlist.cs (3)
186Add(keyValuePair.Key, keyValuePair.Value); 191if( index >= 0 && EqualityComparer<TValue>.Default.Equals(values[index], keyValuePair.Value)) { 199if( index >= 0 && EqualityComparer<TValue>.Default.Equals(values[index], keyValuePair.Value)) {
compmod\system\collections\specialized\stringdictionary.cs (2)
306m_stringDictionary.Add(item.Key, item.Value); 311return TryGetValue(item.Key, out value) && value.Equals(item.Value);
compmod\system\componentmodel\ComponentResourceManager.cs (6)
154if (prop != null && !prop.IsReadOnly && (kvp.Value == null || prop.PropertyType.IsInstanceOfType(kvp.Value))) { 155prop.SetValue(value, kvp.Value); 174if (prop != null && prop.CanWrite && (kvp.Value == null || prop.PropertyType.IsInstanceOfType(kvp.Value))) { 175prop.SetValue(value, kvp.Value, null);
net\System\_IPv6Address.cs (2)
73if (range.Key <= i && range.Value == (NumberOfLabels - 1)) { // Remainder compressed; 1:: 77if (range.Key <= i && i <= range.Value) {
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
692 sb.Append(kv.Value);
net\System\Net\Configuration\UriSectionReader.cs (1)
39sectionData.SchemeSettings.Add(schemeSetting.Key, schemeSetting.Value);
System.Activities (78)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
121if (oldestTimestamp > kvp.Value.Timestamp) 124oldestTimestamp = kvp.Value.Timestamp;
System\Activities\Activity.cs (1)
1749Argument value = pair.Value;
System\Activities\Debugger\DebugManager.cs (4)
156Activity activity2 = currentPair.Value; 229string parentName = pair.Value; 446Stack<Activity> threadStack = entry.Value; 458Stack<Activity> threadStack = entry.Value;
System\Activities\Debugger\InstrumentationTracker.cs (1)
101if (entry.Value == sourcePath && entry.Key != subRoot)
System\Activities\Debugger\SourceLocationProvider.cs (1)
306Activity activity2 = currentPair.Value;
System\Activities\Debugger\StateManager.cs (1)
509if (!SymbolHelper.ValidateChecksum(kvpair.Value))
System\Activities\DurableInstancing\LoadWorkflowByInstanceKeyCommand.cs (1)
92InstancePersistence.ValidatePropertyBag(key.Value);
System\Activities\DurableInstancing\SaveWorkflowCommand.cs (2)
144InstancePersistence.ValidatePropertyBag(key.Value); 152InstancePersistence.ValidatePropertyBag(key.Value, true);
System\Activities\DynamicUpdate\DynamicUpdateMapEntry.cs (1)
238result.Add(pair.Key, pair.Value);
System\Activities\DynamicUpdate\DynamicUpdateServices.cs (1)
86DynamicUpdateInfo.SetMapItem(objectInfo.Key, objectInfo.Value);
System\Activities\Hosting\SymbolResolver.cs (6)
115Add(item.Key, item.Value); 129return item.Value == reference.Value; 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); 205if (reference.Value == item.Value)
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (8)
108filteredActivityExtensionProviders.Add(newExtensionProviderType, keyedActivityExtensionProvider.Value); 143AddInstanceExtension(extensionProvider.Value); 240IWorkflowInstanceExtension workflowInstanceExtension = keyedExtension.Value as IWorkflowInstanceExtension; 306if (keyedExtension.Key.IsMatch<T>(keyedExtension.Value)) 308result = (T)keyedExtension.Value; 397if ((useObjectTypeForComparison && keyedExtension.Value is T) 398|| keyedExtension.Key.IsMatch<T>(keyedExtension.Value)) 400yield return (T)keyedExtension.Value;
System\Activities\HybridDictionary.cs (2)
194this.Add(item.Key, item.Value); 208return this.singleItemKey == item.Key && this.singleItemValue == item.Value;
System\Activities\Runtime\ActivityInstanceMap.cs (2)
47entry.Value.ActivityId = entry.Key.QualifiedId.AsByteArray(); 48lists[index] = entry.Value;
System\Activities\Runtime\BookmarkManager.cs (1)
255bookmarks.Add(bookmarkEntry.Key.GenerateBookmarkInfo(bookmarkEntry.Value));
System\Activities\Runtime\BookmarkScopeManager.cs (1)
538if (scopeBookmarks.Value.HasBookmarks)
System\Activities\Runtime\ExecutionPropertyManager.cs (4)
162if (!item.Value.IsRemoved && !flattenedProperties.ContainsKey(item.Key) && (!item.Value.HasRestrictedVisibility || item.Value.Visibility == currentIdSpace)) 164flattenedProperties.Add(item.Key, item.Value.Property);
System\Activities\Statements\FlowSwitch.cs (1)
76connections.Add(item.Value);
System\Activities\Statements\InvokeDelegate.cs (6)
62RuntimeArgument argument = new RuntimeArgument(entry.Key, entry.Value.ArgumentType, entry.Value.Direction); 63metadata.Bind(entry.Value, argument); 141if (ArgumentDirectionHelper.IsIn(entry.Value.Direction)) 143inputParameters.Add(entry.Key, entry.Value.Get(context)); 162DelegateArguments[entry.Key].Set(context, entry.Value);
System\Activities\Statements\StateMachine.cs (2)
397unconditionalTransitions.Value.Count > 1) 399foreach (Transition transition in unconditionalTransitions.Value)
System\Activities\Tracking\EtwTrackingParticipant.cs (8)
166if (item.Value == null) 173Type valueType = item.Value.GetType(); 181writer.WriteValue(item.Value); 185Guid value = (Guid)item.Value; 190DateTime date = ((DateTime)item.Value).ToUniversalTime(); 202this.variableSerializer.WriteObject(writer, item.Value); 243if (item.Value == null) 249writer.WriteValue(item.Value);
System\Activities\Validation\ValidationHelper.cs (5)
46IEnumerable<RuntimeArgument> requiredArguments = entry.Value.Where((a) => a.IsRequired); 60IEnumerable<RuntimeArgument> optionalArguments = entry.Value.Where((a) => !a.IsRequired); 195string[] equivalentGroups = new string[entry.Value.Count + 1]; 197entry.Value.CopyTo(equivalentGroups, 1); 214IList<string> sortedList = entry.Value.OrderBy((s) => s, StringComparer.Ordinal).ToList();
System\Activities\WorkflowApplication.cs (3)
340this.instanceMetadata[pair.Key] = new InstanceValue(pair.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly); 5847data[WorkflowNamespace.VariablesPath.GetName(mappedVariable.Key)] = new InstanceValue(mappedVariable.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional); 5876data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new InstanceValue(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (4)
556XamlReader reader = defaultValueNode.Value.Reader; 572XamlServices.Transform(defaultValueNode.Value.Reader, CurrentWriter, false); 584XamlServices.Transform(defaultValueNode.Value.Reader, deferredPropertyNodes.Writer, false); 1169XamlServices.Transform(member.Value.Reader, parentWriter, false);
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (3)
950ProcessDefaultValue(propertyNameAndValue.Key, propertyNameAndValue.Value.PropertyValue, propertyNameAndValue.Value.ValueReader, propertyNameAndValue.Value.ValueReader as IXamlLineInfo);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (7)
435GenerateProperty(property.Value, descriptor); 442GenerateField(field.Value, descriptor); 1683valueField.Value.Type, 1689new CodePrimitiveExpression(valueField.Value.Index), 1725new CodePrimitiveExpression(valueField.Value.Index), 2260validateMethod.Statements.Add(GenerateLocationReferenceCheck(kvp.Value)); 2265validateMethod.Statements.Add(GenerateLocationReferenceCheck(kvp.Value));
System.Activities.Core.Presentation (14)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (6)
477PointCollection viewStatePoints = viewStatePair.Value as PointCollection; 483else if (viewStatePair.Value is Point) 485modifiedValues.Add(viewStatePair.Key, Point.Add((Point)viewStatePair.Value, offsetVector)); 492this.ViewStateService.StoreViewStateWithUndo(modelItem, kvPair.Key, kvPair.Value); 496this.ViewStateService.StoreViewState(modelItem, kvPair.Key, kvPair.Value); 547AttachablePropertyServices.SetProperty(clonedObject, attachedProperty.Key, attachedProperty.Value);
System\ServiceModel\Activities\Presentation\Converters\ReceiveParametersContentSearchableStringConverter.cs (2)
23results.Add(param.Value.GetType().Name); 24results.AddRange(new ArgumentSearchableStringConverter().Convert(param.Value));
System\ServiceModel\Activities\Presentation\Converters\SendParametersContentSearchableStringConverter.cs (2)
23results.Add(param.Value.GetType().Name); 24results.AddRange(new ArgumentSearchableStringConverter().Convert(param.Value));
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (1)
227items.Add(new ExpanderTypeEntry() { TypeToExpand = entry.Value, Name = entry.Key });
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (3)
201result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType)); 209result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType)); 267: base(entry.Value)
System.Activities.DurableInstancing (36)
System\Activities\DurableInstancing\CorrelationKey.cs (1)
91result.Add(new CorrelationKey(keyValuePair.Key, keyValuePair.Value, encodingOption));
System\Activities\DurableInstancing\DefaultObjectSerializer.cs (1)
71propertyBag.Add(property.Key, property.Value);
System\Activities\DurableInstancing\LoadRetryHandler.cs (3)
51result = this.retryQueue.RemoveAll(x => x.Value != null); 63value.Value 108retry.Value.Retry();
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (5)
144this.associatedInstanceKeys.Add(keyEntry.Key, keyEntry.Value); 160if (keyEntry.Value != null) 162foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 164base.InstancePersistenceContext.WroteInstanceKeyMetadataValue(keyEntry.Key, property.Key, property.Value); 209InstanceValue propertyValue = metadataChange.Value;
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (11)
167base.InstancePersistenceContext.WroteInstanceMetadataValue(property.Key, property.Value); 327if (keyEntry.Value != null) 329foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 331context.WroteInstanceKeyMetadataValue(keyEntry.Key, property.Key, property.Value); 360if (keyEntry.Value != null) 362foreach (KeyValuePair<XName, InstanceValue> property in keyEntry.Value) 364context.WroteInstanceKeyMetadataValue(keyEntry.Key, property.Key, property.Value); 373if (instanceKeys.Value != null) 375if (instanceKeys.Value.InstanceKeyState == InstanceKeyState.Associated) 551foreach (XName name in promotion.Value.Item1) 576foreach (XName name in promotion.Value.Item2)
System\Activities\DurableInstancing\SerializationUtilities.cs (12)
103metadataProperties.Add(property.Key, new InstanceValue(property.Value)); 120if ((metadataProperty.Value.Options & InstanceValueOptions.WriteOnly) == 0) 122propertyBagToSerialize.Add(metadataProperty.Key, metadataProperty.Value.Value); 129if (metadataChange.Value.IsDeletedValue) 140else if ((metadataChange.Value.Options & InstanceValueOptions.WriteOnly) == 0) 142propertyBagToSerialize[metadataChange.Key] = metadataChange.Value.Value; 170bool isComplex = (XmlPropertyBag.GetPrimitiveType(property.Value.Value) == PrimitiveType.Unavailable); 171bool isWriteOnly = (property.Value.Options & InstanceValueOptions.WriteOnly) == InstanceValueOptions.WriteOnly; 173propertyBags[index].Add(property.Key, property.Value.Value); 210if ((property.Value.Options & InstanceValueOptions.WriteOnly) != InstanceValueOptions.WriteOnly) 212propertyBag.Add(property.Key, property.Value.Value); 250properties.Add(property.Key, new InstanceValue(property.Value));
System\Activities\DurableInstancing\StoreUtilities.cs (1)
211lockOwnerProperties.Add(property.Key, property.Value);
System\Activities\DurableInstancing\XmlPropertyBag.cs (2)
61writer.WriteAttributeString("Type", ((int)GetPrimitiveType(property.Value)).ToString(CultureInfo.InvariantCulture)); 62writer.WriteAttributeString("Value", ConvertNativeValueToString(property.Value));
System.Activities.Presentation (87)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
603XamlReader viewStateValueReader = entry.Value.GetReader();
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (4)
307object sourceLocationObject = sourceLocationObjectEntry.Value; 626if (nameSourceLocation.Key != null && nameSourceLocation.Value != null && !propertyValueLocationMapping.ContainsKey(nameSourceLocation.Key)) 628propertyValueLocationMapping.Add(nameSourceLocation.Key, nameSourceLocation.Value); 655SourceLocation propertyLocation = propertyValueLocation.Value;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (5)
140existing.AddRange(kv.Value); 144existingMd.MemberAttributes.Add(kv.Key, kv.Value); 163AddTypeMetadata(kv.Key, kv.Value); 531if (kv.Value.MemberAttributes != null) 534foreach (KeyValuePair<string, AttributeList> kvMember in kv.Value.MemberAttributes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (5)
197if (pair.Value.Count < containerCounter) 204if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.IsValueType || pair.Value[0].PropertyType.Equals(typeof(string)))) 209yield return (IList<ModelProperty>)pair.Value;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (7)
23if (keyValuePair.Value is System.Drawing.SolidBrush) 25System.Drawing.SolidBrush drawingBrush = (System.Drawing.SolidBrush)(keyValuePair.Value); 34else if (keyValuePair.Value is System.Drawing.Drawing2D.LinearGradientBrush) 36System.Drawing.Drawing2D.LinearGradientBrush drawingBrush = (System.Drawing.Drawing2D.LinearGradientBrush)keyValuePair.Value; 49else if (keyValuePair.Value is System.Drawing.FontFamily) 51System.Drawing.FontFamily drawingFontFamily = (System.Drawing.FontFamily)keyValuePair.Value; 60Add(keyValuePair.Key, keyValuePair.Value);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
131sb.Append(pair.Value);
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (6)
162return TryGetValue(item.Key, out value) && value == item.Value; 324values[idx++] = kv.Value; 404Add(item.Key, item.Value); 423if (TryGetValue(item.Key, out value) && value == item.Value) { 447get { return new DictionaryEntry(_real.Current.Key, _real.Current.Value); } 455get { return _real.Current.Value; }
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (10)
546breakpointLocations.Add(breakpointLocation, entry.Value); 551breakpointLocations.Add(entry.Key, entry.Value); 628if (this.unmappedBreakpoints.ContainsKey(kvpEntry.Value)) 632newUnmappedBreakpoints.Add(newSourceLocationMapping[kvpEntry.Key], this.unmappedBreakpoints[kvpEntry.Value]); 641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 655SourceLocation sourceLocation = kvp.Value; 664SourceLocation sourceLocation = unresolvedEntry.Value; 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList(); 736this.sourceLocationToModelItem.Remove(resolvedEntry.Value); 843if (kvp.Value.Equals(sourceLocation))
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
231content.Append(entry.Value);
System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
25ModelItemKeyValuePair<TKey, TValue> item = new ModelItemKeyValuePair<TKey, TValue>(kvpair.Key, kvpair.Value);
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (3)
626pair.Value : view2.SortSelectedItems(new List<ModelItem>(pair.Value)); 627if (!AreListsIdenticalExceptOrder(pair.Value, sortedList))
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
192Type expectedReturnType = kvp.Value;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
472ModelItem miValue = kvp.Value; 611if (kvp.Value != null) 613this.OnPropertyEdgeRemoved(kvp.Key, modelProperty.Parent, kvp.Value); 1002if (kvp.Value != null) 1004edges.Add(new Edge(kvp.Key, vertex, kvp.Value));
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (4)
148Add(item.Key, item.Value); 169return value.Equals(item.Value); 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\NamespaceHelper.cs (1)
158foreach (string assemblyName in entries.Value)
System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
129if (object.ReferenceEquals(kvp.Value, obj))
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
308position.X = CalculateInBoundsValue(position.X, window.DesiredSize.Width, this.ActualWidth, this.selectedChild.Value.X); 309position.Y = CalculateInBoundsValue(position.Y, window.DesiredSize.Height, this.ActualHeight, this.selectedChild.Value.Y);
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
98.Where(p => string.Equals(p.Value, prefix))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (1)
58|| (child is TreeViewItemKeyValuePairModelItemViewModel && ((TreeViewItemKeyValuePairModelItemViewModel)child).VisualValue.Value == item as ModelItem)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
197builder.AppendFormat("{0}={1} ", item.Key, item.Value);
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemKeyValuePairModelItemViewModel.cs (5)
36if (this.Value.Value != null) 40this.AddChild(TreeViewItemViewModel.CreateViewModel(this, this.Value.Value), tracker.ParentProperty); 58if (this.Value.Value != null) 60this.AddChild(TreeViewItemViewModel.CreateViewModel(this, this.Value.Value), tracker.ParentProperty); 72if (this.Value.Value != null)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (6)
97if (null != child.Value && !visited.Contains(child.Value)) 99visited.Add(child.Value); 100if (UniqueModelItemHelper.UniqueRoute(child.Value, target, expected)) 102retval.Add(child.Value); 166foreach (KeyValuePair<ModelItem, int> kvp in nonSources.Where((kvp) => 0 < kvp.Value))
System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (3)
96result.HintTextMap.Add(kvp.Key, kvp.Value); 155result.Add(kvp.Key, kvp.Value); 162result.Add(kvp.Key, kvp.Value);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (3)
976((IMultipleDragEnabledCompositeView)pair.Key).OnItemsMoved(pair.Value); 980if (pair.Value.Count >= 2) 985pair.Key.OnItemMoved(pair.Value[0]);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
1138result.Writer.WriteNamespace(new NamespaceDeclaration(ns.Value, ns.Key)); 1239if (!prefixes.Contains(pair.Key) && !namespaces.Contains(pair.Value)) 1243namespaces.Add(pair.Value);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (6)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem)); 227if (IsValidRange(entry.Value.StartLine, entry.Value.StartColumn, entry.Value.EndLine, entry.Value.EndColumn)) 242validSrcLocMapping.Add(modelItemObject, entry.Value);
System.AddIn (1)
System\Addin\Hosting\AddInToken.cs (1)
98QualificationDataItem item = new QualificationDataItem(t, pair.Key, pair.Value);
System.ComponentModel.DataAnnotations (3)
DataAnnotations\Validator.cs (3)
397errors.AddRange(GetValidationErrors(property.Value, property.Key, attributes, breakOnFirstError)); 404ValidationResult validationResult = reqAttr.GetValidationResult(property.Value, property.Key); 406errors.Add(new ValidationError(reqAttr, property.Value, validationResult));
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
484List<SectionInput> inputsPerConfigKey = keyValuePair.Value;
System.Core (18)
Microsoft\Scripting\Actions\ExpandoObject.cs (3)
603TryAddMember(item.Key, item.Value); 632return object.Equals(value, item.Value); 648return TryDeleteValue(null, -1, item.Key, false, item.Value);
Microsoft\Scripting\Compiler\BoundConstants.cs (2)
136if (ShouldCache(reference.Value)) { 150if (ShouldCache(reference.Value)) {
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
354if (ShouldCache(refCount.Key, refCount.Value)) {
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
142TimeSpan timeDifference = timeNow.Subtract(kvp.Value.TheTime);
System\Diagnostics\PerformanceData\CounterSet.cs (1)
224CounterInfo->CounterType = (uint) CounterDef.Value;
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
316Pair<TInputOutput, TLeftKey> currentPair = m_outputEnumerator.Current.Value;
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
401Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>> current = m_outputEnumerator.Current.Value;
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (1)
228currentElement = current.Value;
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
268currentKey = currentPair.Value;
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (6)
495GroupKeyData value = mutables.m_hashLookup[mutables.m_hashLookupIndex].Value; 602hashLookup[j].Value.m_grouping.DoneAdding(); 679hashLookup[j].Value.m_grouping.DoneAdding(); 703Contract.Assert(keyValues.Value != null); 725Contract.Assert(m_keyValues.Value != null); 726return m_keyValues.Value.GetEnumerator();
System.Data (126)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
603XamlReader viewStateValueReader = entry.Value.GetReader();
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (4)
307object sourceLocationObject = sourceLocationObjectEntry.Value; 626if (nameSourceLocation.Key != null && nameSourceLocation.Value != null && !propertyValueLocationMapping.ContainsKey(nameSourceLocation.Key)) 628propertyValueLocationMapping.Add(nameSourceLocation.Key, nameSourceLocation.Value); 655SourceLocation propertyLocation = propertyValueLocation.Value;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (5)
140existing.AddRange(kv.Value); 144existingMd.MemberAttributes.Add(kv.Key, kv.Value); 163AddTypeMetadata(kv.Key, kv.Value); 531if (kv.Value.MemberAttributes != null) 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 (5)
197if (pair.Value.Count < containerCounter) 204if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.IsValueType || pair.Value[0].PropertyType.Equals(typeof(string)))) 209yield return (IList<ModelProperty>)pair.Value;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (7)
23if (keyValuePair.Value is System.Drawing.SolidBrush) 25System.Drawing.SolidBrush drawingBrush = (System.Drawing.SolidBrush)(keyValuePair.Value); 34else if (keyValuePair.Value is System.Drawing.Drawing2D.LinearGradientBrush) 36System.Drawing.Drawing2D.LinearGradientBrush drawingBrush = (System.Drawing.Drawing2D.LinearGradientBrush)keyValuePair.Value; 49else if (keyValuePair.Value is System.Drawing.FontFamily) 51System.Drawing.FontFamily drawingFontFamily = (System.Drawing.FontFamily)keyValuePair.Value; 60Add(keyValuePair.Key, keyValuePair.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
131sb.Append(pair.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (6)
162return TryGetValue(item.Key, out value) && value == item.Value; 324values[idx++] = kv.Value; 404Add(item.Key, item.Value); 423if (TryGetValue(item.Key, out value) && value == item.Value) { 447get { return new DictionaryEntry(_real.Current.Key, _real.Current.Value); } 455get { return _real.Current.Value; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (10)
546breakpointLocations.Add(breakpointLocation, entry.Value); 551breakpointLocations.Add(entry.Key, entry.Value); 628if (this.unmappedBreakpoints.ContainsKey(kvpEntry.Value)) 632newUnmappedBreakpoints.Add(newSourceLocationMapping[kvpEntry.Key], this.unmappedBreakpoints[kvpEntry.Value]); 641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 655SourceLocation sourceLocation = kvp.Value; 664SourceLocation sourceLocation = unresolvedEntry.Value; 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList(); 736this.sourceLocationToModelItem.Remove(resolvedEntry.Value); 843if (kvp.Value.Equals(sourceLocation))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
231content.Append(entry.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DictionaryItemsCollection.cs (1)
25ModelItemKeyValuePair<TKey, TValue> item = new ModelItemKeyValuePair<TKey, TValue>(kvpair.Key, kvpair.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (3)
626pair.Value : view2.SortSelectedItems(new List<ModelItem>(pair.Value)); 627if (!AreListsIdenticalExceptOrder(pair.Value, sortedList))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
192Type expectedReturnType = kvp.Value;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
472ModelItem miValue = kvp.Value; 611if (kvp.Value != null) 613this.OnPropertyEdgeRemoved(kvp.Key, modelProperty.Parent, kvp.Value); 1002if (kvp.Value != null) 1004edges.Add(new Edge(kvp.Key, vertex, kvp.Value));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (4)
148Add(item.Key, item.Value); 169return value.Equals(item.Value); 183KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.Target, item.Value); 213yield return new KeyValuePair<K, V>((K)k, item.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
158foreach (string assemblyName in entries.Value)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
129if (object.ReferenceEquals(kvp.Value, obj))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
308position.X = CalculateInBoundsValue(position.X, window.DesiredSize.Width, this.ActualWidth, this.selectedChild.Value.X); 309position.Y = CalculateInBoundsValue(position.Y, window.DesiredSize.Height, this.ActualHeight, this.selectedChild.Value.Y);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
98.Where(p => string.Equals(p.Value, prefix))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (1)
58|| (child is TreeViewItemKeyValuePairModelItemViewModel && ((TreeViewItemKeyValuePairModelItemViewModel)child).VisualValue.Value == item as ModelItem)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
197builder.AppendFormat("{0}={1} ", item.Key, item.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemKeyValuePairModelItemViewModel.cs (5)
36if (this.Value.Value != null) 40this.AddChild(TreeViewItemViewModel.CreateViewModel(this, this.Value.Value), tracker.ParentProperty); 58if (this.Value.Value != null) 60this.AddChild(TreeViewItemViewModel.CreateViewModel(this, this.Value.Value), tracker.ParentProperty); 72if (this.Value.Value != null)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (6)
97if (null != child.Value && !visited.Contains(child.Value)) 99visited.Add(child.Value); 100if (UniqueModelItemHelper.UniqueRoute(child.Value, target, expected)) 102retval.Add(child.Value); 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)
96result.HintTextMap.Add(kvp.Key, kvp.Value); 155result.Add(kvp.Key, kvp.Value); 162result.Add(kvp.Key, kvp.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (3)
976((IMultipleDragEnabledCompositeView)pair.Key).OnItemsMoved(pair.Value); 980if (pair.Value.Count >= 2) 985pair.Key.OnItemMoved(pair.Value[0]);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (3)
1138result.Writer.WriteNamespace(new NamespaceDeclaration(ns.Value, ns.Key)); 1239if (!prefixes.Contains(pair.Key) && !namespaces.Contains(pair.Value)) 1243namespaces.Add(pair.Value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (6)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem)); 227if (IsValidRange(entry.Value.StartLine, entry.Value.StartColumn, entry.Value.EndLine, entry.Value.EndColumn)) 242validSrcLocMapping.Add(modelItemObject, entry.Value);
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (1)
270if (!connectionStringBuilder.CurrentValues.TryGetValue(entry.Key, out value) || !entry.Value.Equals(value)) {
fx\src\data\System\Data\Common\ObjectStorage.cs (18)
511tmp.Add(entry.Key, entry.Value); 524key.Value.ElementName = attribute.ElementName; 525key.Value.Namespace = attribute.Namespace; 526key.Value.DataType = attribute.DataType; 527key.Value.IsNullable = attribute.IsNullable; 547(((x.Value == null) && (y.Value == null)) || // XmlRootAttribute both null 548((x.Value != null) && (y.Value != null) && // XmlRootAttribute both with value 549(x.Value.ElementName == y.Value.ElementName) && // all attribute elements are equal 550(x.Value.Namespace == y.Value.Namespace) && 551(x.Value.DataType == y.Value.DataType) && 552(x.Value.IsNullable == y.Value.IsNullable)))); 557return unchecked(obj.Key.GetHashCode() + obj.Value.ElementName.GetHashCode());
fx\src\data\System\Data\DataView.cs (1)
1566entry.Value.RemoveRef();
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (3)
403OleDbPropertyInfo info = entry.Value; 418OleDbPropertyInfo info = entry.Value; 443OleDbPropertyInfo info = entry.Value;
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (7)
68DbConnectionPoolGroup poolGroup = entry.Value; 422newConnectionPoolGroups.Add(entry.Key, entry.Value); 522if (null != entry.Value) { 523Debug.Assert(!entry.Value.IsDisabled, "Disabled pool entry discovered"); 528if (entry.Value.Prune()) { // may add entries to _poolsToRelease 530QueuePoolGroupForRelease(entry.Value); 533newConnectionPoolGroups.Add(entry.Key, entry.Value);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolGroup.cs (3)
137DbConnectionPool pool = entry.Value; 253DbConnectionPool pool = entry.Value; 280newPoolCollection.TryAdd(entry.Key, entry.Value);
fx\src\data\System\Data\SqlClient\SqlDependency.cs (1)
926databaseList = entry.Value;
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
1353SqlDependencyPerAppDomainDispatcher perAppDomainDispatcher = entry.Value; 1397SqlConnectionContainer container = entry.Value;
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (3)
291SqlDependency dependency = entry.Value; 425DependencyList dependencies = entry.Value; 432commandHashesToRemove.Add(entry.Value.CommandHash);
System.Data.Entity (227)
System\Data\Common\CommandTrees\DbCommandTree.cs (1)
135dumper.Dump(param.Value, "ParameterType");
System\Data\Common\CommandTrees\DbFunctionCommandTree.cs (1)
57paramTypes.Add(paramInfo.Value);
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
48this._parameters = validator.Parameters.Select(paramInfo => paramInfo.Value).ToList().AsReadOnly();
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1911DbExpressionBinding applyBinding = DbExpressionBuilder.BindAs(applyTemplate.Value, applyTemplate.Key);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (9)
585if (!TypeHelpers.IsValidGroupKeyType(keyInfo.Value.ResultType)) 591columns.Add(new KeyValuePair<string, TypeUsage>(keyInfo.Key, keyInfo.Value.ResultType)); 593return keyInfo.Value; 618if (aggInfo.Value is DbGroupAggregate) 630columns.Add(new KeyValuePair<string, TypeUsage>(aggInfo.Key, aggInfo.Value.ResultType)); 631return aggInfo.Value; 1575columnTypes.Add(new KeyValuePair<string, TypeUsage>(columnValue.Key, columnValue.Value.ResultType)); 1576return columnValue.Value; 1751if (null == element.Value)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
154IEnumerable<EdmProperty> mappedProps = mappedPropInfo.Select(propInfo => new EdmProperty(propInfo.Key, propInfo.Value));
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
205PrinterVisitor.AppendTypeSpecifier(paramNode, paramInfo.Value); 286AppendType(node, paramInfo.Value);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
439EdmProperty discriminatorProp = (EdmProperty)((DbPropertyExpression)((DbComparisonExpression)discriminatorPredicates.First().Value).Left).Property;
System\Data\Common\CommandTrees\Internal\XmlExpressionDumper.cs (2)
59_writer.WriteAttributeString(attr.Key, (null == attr.Value ? "" : attr.Value.ToString()));
System\Data\Common\EntitySql\SemanticAnalyzer.cs (6)
1275argTypes.Zip(aggArgTypes).All(types => types.Key == null && types.Value == null || TypeSemantics.IsStructurallyEqual(types.Key, types.Value)), 2923projectExpression = source.Project(projectionItems[0].Value); 3655sr.CurrentScope.Add(kvp.Key, new ProjectionItemDefinitionScopeEntry(kvp.Value)); 4112projectionItems.ForEach(projectionItem => sr.CurrentScope.Add(projectionItem.Key, new ProjectionItemDefinitionScopeEntry(projectionItem.Value))); 4142DbVariableReferenceExpression projectionExpressionRef = projectionExpression.Value.ResultType.Variable(projectionExpression.Key);
System\Data\Common\EntitySql\SemanticResolver.cs (4)
1626action(scopeEntry.Value); 1644ScopeEntry newScopeEntry = action(scopeEntry.Value); 1646if (scopeEntry.Value != newScopeEntry) 1657updatedEntries.ForEach((updatedScopeEntry) => scope.Replace(updatedScopeEntry.Key, updatedScopeEntry.Value));
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (3)
109Append(":", pair.Value.DeclaringType); 110Append(".", pair.Value.Name); 235Append(":", typeChoice.Value);
System\Data\Common\Internal\Materialization\Shaper.cs (1)
118elementDelegate = typeDelegatePair.Value;
System\Data\Common\Internal\Materialization\Translator.cs (4)
1446Type type = DetermineClrType(typeChoice.Value.Type); 1469typeChoice.Value.Accept(this, arg).Expression, 1507Expression typeReader = Emit_EnsureType(AcceptWithMappedType(this, typeChoice.Value, columnMap).UnwrappedExpression, typeof(TElement)); 1667Type type = pair.Value;
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
188sb.Append(GetTypeUsageToken(param.Value));
System\Data\Common\Utils\AliasGenerator.cs (1)
77updatedCache.Add(entry.Key, entry.Value);
System\Data\Common\Utils\Boolean\ConversionContext.cs (3)
102_inverseVariableMap = _variableMap.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); 181var range = vertexRange.Value; 196_inverseMap = _domainVariableToRobddVariableMap.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
System\Data\Common\Utils\MetadataHelper.cs (1)
829builder.AppendLine(view.Value);
System\Data\EntityClient\EntityCommand.cs (1)
589queryParams.Select(paramInfo => paramInfo.Value.Parameter(paramInfo.Key))).CommandTree;
System\Data\EntityClient\EntityCommandDefinition.cs (2)
329Debug.Assert(TypeSemantics.IsScalarType(queryParameter.Value), "Non-scalar type used as query parameter type"); 334EntityCommandDefinition.PopulateParameterFromTypeUsage(result, queryParameter.Value, isOutParam: false);
System\Data\EntityKey.cs (4)
890if (EntityUtil.IsNull(keyValuePair.Value) || String.IsNullOrEmpty(keyValuePair.Key)) 896singletonKeyValue = keyValuePair.Value; 909if (EntityUtil.IsNull(keyValuePair.Value) || String.IsNullOrEmpty(keyValuePair.Key)) 916compositeKeyValues[i] = keyValuePair.Value;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (3)
159Facet facet = Facet.Create(Converter.StoreGeneratedPatternFacet, value.Value); 164Facet facet = Facet.Create(Converter.ConcurrencyModeFacet, value.Value); 170Facet facet = Facet.Create(Converter.CollationFacet, value.Value);
System\Data\Mapping\FunctionImportMapping.cs (4)
233var lineInfo = unreachableEntityType.Value.First(); 234string lines = StringUtil.ToCommaSeparatedString(unreachableEntityType.Value.Select(li => li.LineNumber)); 247var lineInfo = unreachableIsTypeOf.Value.First(); 248string lines = StringUtil.ToCommaSeparatedString(unreachableIsTypeOf.Value.Select(li => li.LineNumber));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
227RowType rowType = new RowType(columns.Select(c => new EdmProperty(c.Key, c.Value)));
System\Data\Mapping\ObjectTypeMapping.cs (1)
179memberMapping = keyValuePair.Value;
System\Data\Mapping\StorageMappingItemCollection.cs (1)
433List<GeneratedView> generatedViews = extentViewPair.Value;
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
151generatedView = keyValuePair.Value[0]; 526extentView.Value, // eSQL
System\Data\Mapping\StorageMappingItemLoader.cs (3)
587if (mappingCount.Value > 1) 2528.All(ppm => ppm.Key.EdmEquals(ppm.Value.EdmProperty)), "propertyMappings order does not correspond to the order of properties in the structuredType."); 3635TypeUsage storeMappedTypeUsage = memberMappingInfo.Value;
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (3)
54int identifier = member.Value.Identifier; 188DbSetClause newClause = new DbSetClause(inputIdentifier.Value.Property, DbExpressionBuilder.Constant(value)); 189modifiedClauses[inputIdentifier.Value] = newClause;
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (6)
231inputIdentifier.Value.Value = value; 251.Select(r => new KeyValuePair<int, PropagatorResult>(GetColumnOrdinal(translator, reader, r.Key), r.Value)) 255TypeUsage columnType = members[resultColumn.Value.RecordOrdinal].TypeUsage; 268PropagatorResult result = resultColumn.Value; 389DbParameter thisParameter = this.m_inputIdentifiers[i].Value; 390DbParameter otherParameter = other.m_inputIdentifiers[i].Value;
System\Data\Mapping\Update\Internal\Graph.cs (2)
86foreach (TVertex vertex in successors.Value) 223foreach (TVertex vertex in outgoingEdge.Value)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
182IEntityStateEntry stateEntry = expected.Value;
System\Data\Mapping\Update\Internal\UndirectedGraph.cs (3)
72if (componentMap[edge.Key].componentNum != componentMap[edge.Value].componentNum) { 74int oldValue = componentMap[edge.Value].componentNum; 76componentMap[edge.Value].componentNum = newValue;
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
356List<UpdateCommand> commandsRequiringKey = keyAndCommands.Value;
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
339GenerateValueExpression(setClause.Key, setClause.Value))); 398DbExpression clauseExpression = GenerateEqualityExpression(target, clause.Key, clause.Value);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (2)
484object value = generatedValue.Value; 884throw EntityUtil.UpdateMissingEntity(required.Value.Name, TypeHelpers.GetFullName(key.EntityContainerName, key.EntitySetName));
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (6)
334var nonTrivial = extentMap.KeyValuePairs.Where(m => m.Value.Count > 1).ToArray(); 338foreach (var n in m.Value) 350Debug.Assert(extentMap.KeyValuePairs.All(m => m.Value.Count == 1), "extentMap must map to single nodes only."); 382extentLojNode.Add(extentInfo.Value.Single()); 405foreach (var fkExtent in m.Value) 426var extentLOJ = m.Value;
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
173if (!kv.Value.Contains(relProperty))
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
768Debug.Assert(entry.Value.ElseValue == null); 769foreach (CaseStatement.WhenThen clause in entry.Value.Clauses)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (2)
175var domainMap = m_conditionDomainMap.ToDictionary(p => p.Key, p => new Set<Constant>(p.Value, Constant.EqualityComparer)); 184var domainMap = m_conditionDomainMap.ToDictionary(p => p.Key, p => new Set<Constant>(p.Value, Constant.EqualityComparer));
System\Data\Mapping\ViewValidator.cs (4)
315if (setInfos.SetInfos.All(it => ((it.Value != null) && (it.Value is DbExpressionSimpleTypeEntitySetInfo))) 318foreach (DbExpressionSimpleTypeEntitySetInfo setInfo in setInfos.SetInfos.Select(it => it.Value)) 343return this.variableScopes.Where(it => (it.Key == expression.VariableName)).Select(it => it.Value).FirstOrDefault();
System\Data\Metadata\Edm\MetadataCollection.cs (1)
712this.IdentityDictionary.Add(pair.Key, pair.Value);
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
163FunctionParameter[] parameters = parameterDefinitions.Select(paramDef => CreateParameter(paramDef.Value, paramDef.Key)).ToArray();
System\Data\Metadata\MetadataCache.cs (2)
231if (pair.Value.PeriodicCleanUpThread()) 246keysForRemoval[i].Value.Clear();
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (2)
142entry.Key, new ImmutableAssemblyCacheEntry(entry.Value)); 152lockedAssemblyCache.Add(entry.Key, new ImmutableAssemblyCacheEntry(entry.Value));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (8)
92if (pair.Value == 1) 100Debug.Assert(pair.Value > 1, "how did we get a negative count of types in the dictionary?"); 406TrackClosure(typeToTrack.Value.PropertyType); 410var clrp = typeToTrack.Value; 445TrackClosure(typeToTrack.Value.PropertyType); 451var clrp = typeToTrack.Value; 620TrackClosure(typeToTrack.Value.PropertyType); 624var clrp = typeToTrack.Value;
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (1)
88_conventionCSpaceTypeNames[edmType.Name] = new KeyValuePair<EdmType, int>(pair.Key, pair.Value + 1);
System\Data\Metadata\TypeHelpers.cs (1)
382rowElements.Add(new EdmProperty(kvp.Key, kvp.Value));
System\Data\Objects\DataClasses\RelationshipManager.cs (6)
1312countersCopy.Add(valueCounterPair.Value.Value); 1324valueCounterPair.Value.Value = valueCounterPair.Value.Value - 1; 1325if (valueCounterPair.Value.Value < 0) 1337if (valueCounterPair.Value.Value != 0) 1352valueCounterPair.Value.Value = enumerator.Current;
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
166QueryParameterExpression parameterExpression = pair.Value; 242.ToDictionary(pair => pair.Key, pair => pair.Value);
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
220QueryParameterExpression parameterExpression = pair.Value;
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
317if (!_parameters.Select(p => p.Value).Contains(queryParameter)) 1579propertyValues.Add(column.Value); 1580properties.Add(new EdmProperty(column.Key, column.Value.ResultType));
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
438.ToDictionary(r => r.Key, r => r.Value);
System\Data\Objects\ELinq\Translator.cs (1)
467Type elementType = implementedCollectionInfo.Value;
System\Data\Objects\EntityEntry.cs (5)
1715Debug.Assert(pair.Value.Count == 1, "Unexpected number of keys"); 1719reference.SetCachedForeignKey(pair.Value.First(), this); 2697this.SetCurrentEntityValue(pair.Key /*name*/, pair.Value.Key /*value*/); 2771valueCounterPair.Value.Value = valueCounterPair.Value.Value + 1;
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1175MethodInfo getRelatedCollection = s_GetRelatedCollection.MakeGenericMethod(EntityUtil.GetCollectionElementType(navProperty.Value.PropertyType)); 1182generator.Emit(OpCodes.Callvirt, navProperty.Value.GetSetMethod(true));
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
239_currentSpanPath.Push(nextInfo.Value);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (4)
258!tracking.FullSpannedEnds.ContainsKey(relSpan.Value)) 264if(!TryGetNavigationSource(relSpan.Value, out columnDef)) 269columnDef = navSource.NavigateAllowingAllRelationshipsInSameTypeHierarchy(relSpan.Key, relSpan.Value); 279tracking.SpannedColumns[idx] = relSpan.Value;
System\Data\Objects\ObjectContext.cs (8)
2101Debug.Assert(EntityState.Added != item.Value.State, "should not be possible"); 2102if (EntityState.Detached != item.Value.State) 2112item.Value.Delete(); 2118Debug.Assert(EntityState.Detached != item.Value.State, "not expecting detached"); 2120item.Value.AcceptChanges(); 2131Debug.Assert(EntityState.Added != item.Value.State, "should not be possible"); 2132if (item.Value.State == EntityState.Deleted) 2136item.Value.AcceptChanges();
System\Data\Objects\ObjectStateManager.cs (18)
496foreach (var dFkEntry in _danglingForeignKeys.SelectMany(kv => kv.Value)) 517foreach (var entry in _danglingForeignKeys.SelectMany(kv => kv.Value)) 778foreach (IEntityWrapper wrappedEntity in pair.Value) 1609if ((null == (object)roleAndKey1.Value) || (null == (object)roleAndKey2.Value)) 1850entries[size++] = e.Value; 1857entries[size++] = e.Value; 1864entries[size++] = e.Value; 1871entries[size++] = e.Value; 1878entries[size++] = e.Value; 1885entries[size++] = e.Value; 1892entries[size++] = e.Value; 3144if (pair.Key.IsDependentEndOfReferentialConstraint(true) && pair.Value.Count > 0) 3156if (pair.Value.Count > 1) 3180if (pair.Key.IsDependentEndOfReferentialConstraint(true) && pair.Value.Count > 0) 3191if (pair.Value.Count > 1) 3198else if (pair.Value.Count == 1) 3201IEntityWrapper addedEntity = pair.Value.First();
System\Data\Objects\RelationshipWrapper.cs (2)
46: this(extent, roleAndKey1.Key, roleAndKey1.Value, roleAndKey2.Key, roleAndKey2.Value)
System\Data\Query\InternalTrees\ColumnMap.cs (2)
428sb.AppendFormat(CultureInfo.InvariantCulture, "{0}({1},{2})", separator, kv.Key, kv.Value); 515sb.AppendFormat(CultureInfo.InvariantCulture, "{0}(<{1}>,{2})", separator, kv.Key, kv.Value);
System\Data\Query\InternalTrees\ColumnMapCopier.cs (1)
218TypedColumnMap newMap = (TypedColumnMap)kv.Value.Accept(this, replacementVarMap);
System\Data\Query\InternalTrees\Dump.cs (4)
132_writer.WriteAttributeString(attr.Key, attr.Value.ToString()); 696tc.Value.Accept(this, dumper); 718tc.Value.Accept(this, dumper); 1040attrs2.Add(kv.Key, kv.Value);
System\Data\Query\InternalTrees\ExplicitDiscriminatorMap.cs (1)
72if (discriminatorTypePair.Value.EdmEquals(entityType))
System\Data\Query\InternalTrees\OpCopier.cs (1)
929leftMap.Add(outputVar, GetMappedVar(kv.Value));
System\Data\Query\InternalTrees\Vars.cs (2)
614if (!reverseMap.TryGetValue(kv.Value, out x)) 616reverseMap[kv.Value] = kv.Key;
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
911Node argumentNode = OpCopier.Copy(m_command, candidate.Value);
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (3)
198columnMap = new ScalarColumnMap(varRefColumnMap.Type, varRefColumnMap.Name, commandAndColumn.Key, commandAndColumn.Value); 348TypedColumnMap newTypeChoice = (TypedColumnMap)kv.Value.Accept(this, translationDelegate); 350if (newTypeChoice != kv.Value)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
286if (!ValidateParameterType(paramInfo.Value)) 288throw EntityUtil.NotSupported(System.Data.Entity.Strings.ParameterTypeNotSupported(paramInfo.Key, paramInfo.Value.ToString())); 290_iqtCommand.CreateParameterVar(paramInfo.Key, paramInfo.Value); 1862typeFilter.ToEnumerable().Select(tf => tf.Value ? resultBinding.Variable.IsOfOnly(tf.Key) : resultBinding.Variable.IsOf(tf.Key)).ToList() 2209relPropertyExprs.Add(VisitExprAsScalar(kv.Value)); 2221DbExpression value = propertyMap.Value;
System\Data\Query\PlanCompiler\JoinElimination.cs (1)
122m_varRemapper.AddMapping(kv.Key, kv.Value);
System\Data\Query\PlanCompiler\JoinGraph.cs (7)
1054leftVars.Add(orderedEdge1VarsEnumerator.Current.Value); 1055rightVars.Add(orderedEdge2VarsEnumerator.Current.Value); 1766if (kv.Value.Count <= 1) 1771EliminateStarSelfJoin(kv.Value); 2296Var newVar1 = kv.Value; 2687result = ClassifyPredicate(targetNodeId, predicatePair.Key, predicatePair.Value, result, outPredicates); 2695result = ClassifyPredicate(targetNodeId, predicatePair.Key, predicatePair.Value, result, outPredicates);
System\Data\Query\PlanCompiler\NestPullup.cs (3)
1867Node newDefiningNode = Command.CreateNode(newPhysicalProjectOp, collectionVarDefinitionPair.Value); 2222if (kv.Key != kv.Value) 2224varRefReplacementMap[kv.Key] = new VarRefColumnMap(kv.Value);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (6)
623if (kv.Value != null) 626values.Add(kv.Value); 1529newVarSet.Set(kv.Value); 1573if (!m_varInfoMap.TryGetVarInfo(kv.Value, out innerVarInfo)) 1575newVarMap.Add(kv.Key, kv.Value); 2605md.EntityType type = op.DiscriminatorMap.TypeMap[i].Value;
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1843EntityTypeBase entityType = discriminatorTypePair.Value;
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
752AddPropertyRefs(kv.Value, myProps);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (8)
347ExplicitDiscriminatorMap map = setMapPair.Value.DiscriminatorMap; 577if (kv.Value.RootType.DiscriminatorMap != null) 581kv.Value.TypeId = kv.Value.RootType.DiscriminatorMap.GetTypeId(entityType); 586else if (kv.Value.IsRootType && (md.TypeSemantics.IsEntityType(kv.Key) || md.TypeSemantics.IsComplexType(kv.Key))) 588AssignRootTypeId(kv.Value, String.Format(CultureInfo.InvariantCulture, "{0}X", typeNum)); 697if (kv.Value.IsRootType) 699ExplodeType(kv.Value);
System\Data\Query\PlanCompiler\TransformationRules.cs (2)
1580Node varRefNode = trc.Command.CreateNode(trc.Command.CreateVarRefOp(kv.Value)); 3840trc.AddVarMapping(kv.Key, kv.Value);
System\Data\Query\PlanCompiler\VarRemapper.cs (2)
180Var newVar = Map(kv.Value); 186varMap.Add(kv.Key, kv.Value);
System\Data\Query\ResultAssembly\BridgeDataReader.cs (2)
131DbDataReader result = new BridgeDataReader(shaperInfo.Key, shaperInfo.Value, /*depth:*/ 0, GetNextResultShaperInfo(storeDataReader, workspace, nextResultColumnMaps).GetEnumerator()); 351SetShaper(nextResultShaperInfo.Key, nextResultShaperInfo.Value, depth: 0);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
549paramsToForceNonUnicode = new HashSet<string>(_candidateParametersToForceNonUnicode.Where(p => p.Value).Select(q => q.Key).ToList());
System\Data\SqlClient\SqlProviderServices.cs (2)
125parameterType = queryParameter.Value.ShallowCopy(new FacetValues { Unicode = false }); 129parameterType = queryParameter.Value;
System.Data.Entity.Design (7)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
664_writer.WriteAttributeString("xmlns", xmlPrefixToNamespace.Key, null, xmlPrefixToNamespace.Value);
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
1079multiplicity = endMultiplicityOverride.Value;
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
457newDictionary.Add(GetExtentFullName(item.Key), item.Value); 521CodeMemberMethod viewMethod = CreateViewReturnMethod(extentFullName, index, generatedViewPair.Value);
System\Data\EntityModel\Emitters\TypeReference.cs (2)
120bool addGlobalQualifier = arguments.Value; 209CodeTypeReference typeParameter = arguments.Value;
System\Data\EntityModel\Emitters\Utils.cs (1)
360applyToSpecificType = pair.Value;
System.Data.Linq (4)
ChangeDirector.cs (1)
214object[] rollbackValues = rollbackItemPair.Value;
DataServices.cs (1)
527object[] values = keys.OrderBy(kv => kv.Key.Ordinal).Select(kv => kv.Value).ToArray();
Mapping\MappedMetaModel.cs (2)
703if(String.Compare(mi.Name, orphan.Value.MemberName, StringComparison.Ordinal)==0) { 704throw Error.MappedMemberHadNoCorrespondingMemberInType(orphan.Value.MemberName, type.Name);
System.Data.Services (33)
parent\Client\System\Data\Services\Client\BatchStream.cs (1)
310boundary = parameter.Value;
System\Data\Services\BatchServiceHost.cs (1)
95this.requestHeaders.Add(header.Key, header.Value);
System\Data\Services\HttpProcessUtility.cs (4)
339return parameterInfo.Value; 1085string qvalueText = parameter.Value.Trim(); 1121string encodingName = parameter.Value.Trim(); 1124return EncodingFromName(parameter.Value);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (11)
255if (set.Value.ResourceType.InstanceType.IsAssignableFrom(source.ElementType)) 257containers.Add(set.Value); 319WriteEdmTypes(xmlWriter, typesInNamespace.Value, metadataManager); 559this.ObjectContext.AddObject(entitySetName, objectToBeReplaced.Value); 565this.ObjectContext.ApplyPropertyChanges(entitySetName, objectToBeReplaced.Value); 649originalValues.SetValue(propertyOrdinal, etag.Value); 802Debug.Assert(containerEntry.Value != null, "containerEntry.Value != null"); 804ResourceType resourceType = containerEntry.Value.ResourceType; 815EntitySetRights containerRights = configuration.GetResourceSetRights(containerEntry.Value); 822containerEntry.Value.Name, 828typeRights.Add(resourceType, containerEntry.Value);
System\Data\Services\Providers\ReflectionServiceProvider.cs (3)
266Type entitySetType = entitySetInfo.Value.ResourceType.InstanceType; 269throw new InvalidOperationException(Strings.ReflectionProvider_MultipleEntitySetsForSameType(entitySetInfo.Value.Name, property.Name, entitySetType.FullName, resourceType.FullName)); 273throw new InvalidOperationException(Strings.ReflectionProvider_MultipleEntitySetsForSameType(property.Name, entitySetInfo.Value.Name, resourceType.FullName, entitySetType.FullName));
System\Data\Services\Serializers\JsonSerializer.cs (1)
796this.WriteObjectOpenProperty(pair.Key, pair.Value, parentUri);
System\Data\Services\Serializers\MetadataSerializer.cs (3)
246typesInEntityContainerNamespace = namespaceAlongWithTypes.Value; 252WriteTypes(this.Writer, namespaceAlongWithTypes.Value, associationsInThisNamespace, metadataManager); 812foreach (ResourceType resourceType in namespaceTypePair.Value)
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
312object value = property.Value;
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
344link.AttributeExtensions.Add(attributeExtension.Key, attributeExtension.Value); 882object value = property.Value;
System\Data\Services\UpdateTracker.cs (3)
95foreach (var element in item.Value) 98parameters[1] = element.Value; 114item.Value.Clear();
System\Data\Services\WebUtil.cs (3)
346contentType = mapping.Value; 355result = mapping.Value; 994string fullName = PrimitiveTypesEdmNameMapping[i].Value;
System.Data.Services.Client (18)
parent\Server\System\Data\Services\HttpProcessUtility.cs (2)
1121string encodingName = parameter.Value.Trim(); 1124return EncodingFromName(parameter.Value);
System\Data\Services\Client\ALinq\NavigationPropertySingletonExpression.cs (1)
112this.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
450.ToDictionary(r => r.Key, r => r.Value);
System\Data\Services\Client\ALinq\ResourceBinder.cs (5)
202List<Expression> clauses = predicates.Value; 294rse.KeyPredicate.Add(g.Key, g.Value); 429Expression clause = Expression.Equal(Expression.Property(input, keyValue.Key), keyValue.Value); 939ResourceSetExpression newResource = new ResourceSetExpression(expressionType, source, memberExpression, resourceType, source.ExpandPaths.ToList(), source.CountOption, source.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value), null); 948NavigationPropertySingletonExpression newResource = new NavigationPropertySingletonExpression(type, source, memberExpression, memberExpression.Type, source.ExpandPaths.ToList(), source.CountOption, source.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value), null);
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (1)
221this.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
System\Data\Services\Client\ALinq\UriWriter.cs (1)
261this.uriBuilder.Append(this.ExpressionToString(kvp.Value));
System\Data\Services\Client\AtomMaterializerLog.cs (1)
110AtomEntry entry = entity.Value;
System\Data\Services\Client\AtomParser.cs (1)
889targetEntry.Tag = callbackResult.Value;
System\Data\Services\Client\BatchStream.cs (1)
310boundary = parameter.Value;
System\Data\Services\Client\ClientConvert.cs (1)
275if (pair.Value == type)
System\Data\Services\Client\WebUtil.cs (3)
142request.Accept = header.Value; 147request.ContentType = header.Value; 151request.Headers[header.Key] = header.Value;
System.Data.Services.Design (6)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
297this.LanguageSpecificNamespace(pair.Value), 328var reversePairs = Generator.NamespaceMap.OrderByDescending(p => p.Value.Length).ThenBy(p => p.Key); 343this.LanguageSpecificNamespace(pair.Value),
System\Data\EntityModel\Emitters\TypeReference.cs (2)
112bool addGlobalQualifier = arguments.Value; 172CodeTypeReference typeParameter = arguments.Value;
System\Data\EntityModel\Emitters\Utils.cs (1)
340applyToSpecificType = pair.Value;
System.Data.SqlXml (5)
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
187if (pair.Value != null) { 188ebTypes.Add(new EarlyBoundInfo(pair.Key, pair.Value));
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
190foreach (Stylesheet import in pair.Value.Imports) { 243parentModeFlags[modeFlag.Key] = modeFlags | modeFlag.Value;
System\Xml\Xsl\Xslt\XsltInput.cs (1)
128string nsAtomizedValue = atoms.NameTable.Add(prefixNamespacePair.Value);
System.IdentityModel (9)
System\IdentityModel\Metadata\IndexedProtocolEndpointDictionary.cs (4)
23if (kvp.Value.IsDefault == true) 25return kvp.Value; 27if (kvp.Value.IsDefault == null && impliedDefault == null) 29impliedDefault = kvp.Value;
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (1)
235this.WriteXmlElement(writer, messageParam.Key, messageParam.Value, rst, context);
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
699requestSerializer.WriteXmlElement(writer, messageParam.Key, messageParam.Value, rst, context); 1711responseSerializer.WriteXmlElement(writer, messageParam.Key, messageParam.Value, response, context);
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
1486if (!String.IsNullOrEmpty(property.Key) && !String.IsNullOrEmpty(property.Value)) 1494dictionaryWriter.WriteAttributeString(dictionary.ClaimPropertyValue, dictionary.EmptyString, property.Value);
System.IO.Log (1)
System\IO\Log\ReservationCollection.cs (1)
124for (int i = 0; i < entry.Value; i++)
System.Messaging (2)
System\Messaging\MessageQueue.cs (2)
4246CacheEntry<Value> iterEntry = kv.Value; 4251newTable[kv.Key] = kv.Value;
System.Runtime.DurableInstancing (25)
System\Runtime\DurableInstancing\InstanceOwnerQueryResult.cs (5)
47if (metadata.Value == null || metadata.Value.IsReadOnly) 48safeMetadata = metadata.Value; 52IDictionary<XName, InstanceValue> copy = new Dictionary<XName, InstanceValue>(metadata.Value); 55owners.Add(metadata.Key, metadata.Value == null ? EmptyMetadata : safeMetadata);
System\Runtime\DurableInstancing\InstancePersistence.cs (7)
61if (property.Value == null) 65if (!allowDelete && property.Value.IsDeletedValue) 89if (!value.Value.IsWriteOnly()) 91copy.Add(value.Key, value.Value); 116if (value.Value.IsDeletedValue) 120else if (!value.Value.IsWriteOnly()) 122copy[value.Key] = value.Value;
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (3)
330view.InstanceKeyMetadata = keyMetadata.Value.ReadOnlyCopy(false); 342view.InstanceKeyMetadata = keyMetadata.Value.ReadOnlyCopy(false); 369if (key.Value.InstanceKeyState == InstanceKeyState.Associated)
System\Runtime\DurableInstancing\InstanceView.cs (1)
85keys.Add(key.Key, key.Value.Clone());
System\Runtime\PersistencePipeline.cs (9)
90this.values.Add(value.Key, new InstanceValue(value.Value)); 104this.values.Add(value.Key, new InstanceValue(value.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly)); 145this.values.Add(value.Key, new InstanceValue(value.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly)); 258this.keys = new List<XName>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Key)); 270this.values = new List<object>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Value.Value)); 356return EqualityComparer<object>.Default.Equals(value, item.Value); 374return this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => new KeyValuePair<XName, object>(value.Key, value.Value.Value)).GetEnumerator();
System.Runtime.Serialization (13)
System\Runtime\Serialization\CodeExporter.cs (6)
58DataContract dataContract = pair.Value; 80string clrNamespace = pair.Value; 269DataContract dataContract = pair.Value; 1001if (dataContract.StableName != pair.Key && !dataContract.KnownDataContracts.ContainsKey(pair.Key) && !pair.Value.IsBuiltInDataContract) 1002dataContract.KnownDataContracts.Add(pair.Key, pair.Value); 1386memberNames.Add(pair.Key, pair.Value);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1502return new KeyValue<K, V>(current.Key, current.Value);
System\Runtime\Serialization\DataContractSet.cs (2)
49Add(pair.Key, pair.Value); 56ProcessedContracts.Add(pair.Key, pair.Value);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
306CollectionDataContract collectionDataContract = knownDataContract.Value as CollectionDataContract;
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
75knownTypesList.Add(pair.Value.UnderlyingType);
System\Runtime\Serialization\SchemaExporter.cs (1)
58DataContract dataContract = pair.Value;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
959xmlAttributes.Add(AddNamespaceDeclaration(prefixNsPair.Key, prefixNsPair.Value));
System.ServiceModel (124)
System\ServiceModel\Administration\WbemProvider.cs (1)
883this.SetProperty(kv.Key, kv.Value);
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
141if (count != pair.Value)
System\ServiceModel\Channels\ChannelDemuxer.cs (2)
375listener = pairs[0].Value; 2355listener = pairs[0].Value;
System\ServiceModel\Channels\ConnectionPool.cs (1)
99if (poolEntry.Value.CloseIfEmpty())
System\ServiceModel\Channels\ContextDictionary.cs (3)
118if (item.Value == null) 137if (item.Value == null) 181if (item.Value == null)
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
166writer.WriteValue(pair.Value);
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
155using (ItemType item = items.Current.Value)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
3323foreach (string value in header.Value) 4217message.Properties.Add(property.Key, property.Value);
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (3)
81string[] values = header.Value.ToArray(); 221return this.GetHeaderAt(index).Value.ToArray(); 239builder.AppendLine(GetSingleValue(header.Value.ToArray()));
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (5)
105IMessageProperty messageProperty = header.Value as IMessageProperty; 108header.Value; 153if (!httpHeaders.TryAddWithoutValidation(header.Key, header.Value)) 158header.Value, 170object value = property.Value;
System\ServiceModel\Channels\HttpTransportManager.cs (1)
91this.Fault(pair.Value, exception);
System\ServiceModel\Channels\MessageBuffer.cs (1)
127IDisposable disposable = this.properties[i].Value as IDisposable;
System\ServiceModel\Channels\MessageProperties.cs (7)
432this[property.Key] = property.Value; 771if (pair.Value == null) 773UpdateProperty(pair.Key, pair.Value, true); 781if (pair.Value == null) 790return value.Equals(pair.Value); 843if (pair.Value == null) 853if (!value.Equals(pair.Value))
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (2)
192if (DateTime.UtcNow > msgEntry.Value.ExpiryTime) 194expiredLockList.Add(msgEntry.Value);
System\ServiceModel\Channels\PnrpPeerResolver.cs (2)
661peerName, maxAddresses, targetScope, linkEntry.Key, linkEntry.Value, timeoutHelper.RemainingTime(), linkRegistrations); 672peerName, maxAddresses, targetScope, siteEntry.Key, siteEntry.Value, timeoutHelper.RemainingTime(), siteRegistrations);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
723this.AbortState(pair.Value, true);
System\ServiceModel\Channels\TransportManager.cs (1)
93TChannelListener listener = pair.Value;
System\ServiceModel\Channels\UriPrefixTable.cs (1)
48this.RegisterUri(current.Key.BaseAddress, current.Key.HostNameComparisonMode, current.Value);
System\ServiceModel\ComIntegration\ProxyManager.cs (1)
40IDisposable comProxy = current.Value as IDisposable;
System\ServiceModel\Configuration\SecurityElementBase.cs (4)
505if (!AreTokenParameterCollectionsMatching(operation1.Value.Endorsing, stp2.Endorsing, exactMessageSecurityVersion)) 508if (!AreTokenParameterCollectionsMatching(operation1.Value.SignedEncrypted, stp2.SignedEncrypted, exactMessageSecurityVersion)) 511if (!AreTokenParameterCollectionsMatching(operation1.Value.Signed, stp2.Signed, exactMessageSecurityVersion)) 514if (!AreTokenParameterCollectionsMatching(operation1.Value.SignedEndorsing, stp2.SignedEndorsing, exactMessageSecurityVersion))
System\ServiceModel\Description\DispatcherBuilder.cs (12)
689BindingParameterCollection parameters = stuff.Value.Parameters; 690Binding binding = stuff.Value.Endpoints[0].Binding; 691EndpointIdentity identity = stuff.Value.Endpoints[0].Address.Identity; 704behavior.AddBindingParameters(description, serviceHost, stuff.Value.Endpoints, parameters); 706for (int i = 0; i < stuff.Value.Endpoints.Count; i++) 708ServiceEndpoint endpoint = stuff.Value.Endpoints[i]; 732Type channelType = this.BuildChannelListener(stuff.Value, 742stuff.Value.ChannelDispatcher = channelDispatcher; 747for (int i = 0; i < stuff.Value.Endpoints.Count; i++) 749ServiceEndpoint endpoint = stuff.Value.Endpoints[i]; 831for (int i = 0; i < stuff.Value.Endpoints.Count; i++) 833ServiceEndpoint endpoint = stuff.Value.Endpoints[i];
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (9)
67this.operationBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 73this.messageBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 79this.faultBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 263digits[i] = new KeyValuePair<K, IEnumerator<V>>(kvp.Key, kvp.Value.GetEnumerator()); 264if (!(digits[i].Value.MoveNext())) 269counterValue[digits[i].Key] = digits[i].Value.Current; 285for (currentDigit = 0; currentDigit < digits.Length && !digits[currentDigit].Value.MoveNext(); currentDigit++) 289digits[currentDigit].Value.MoveNext(); 303counterValue[digits[i].Key] = digits[i].Value.Current;
System\ServiceModel\Description\WsdlImporter.cs (7)
2365if (policyDocument.Value.NamespaceURI != MetadataStrings.WSPolicy.NamespaceUri 2366&& policyDocument.Value.NamespaceURI != MetadataStrings.WSPolicy.NamespaceUri15) 2368string warningMsg = SR.GetString(SR.UnrecognizedPolicyDocumentNamespace, policyDocument.Value.NamespaceURI); 2373if (PolicyHelper.GetNodeType(policyDocument.Value) != PolicyHelper.NodeType.Policy) 2375string warningMsg = SR.GetString(SR.UnsupportedPolicyDocumentRoot, policyDocument.Value.Name); 2380string key = CreateKeyFromPolicy(policyDocument.Key, policyDocument.Value); 2388this.externalPolicyDictionary.Add(key, policyDocument.Value);
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
170foreach (var entry in this.cache.Where(pair => !pair.Value.IsAlive).ToList())
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (2)
68entries[i++] = new Entry(item.Key, item.Value); 145Add(item.Key, item.Value);
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (1)
89this.Add(item.Key, item.Value);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
314multipleHeaderValues[headerDescription.Index].Value.Add(item); 342parameters[i] = multipleHeaderValues[i].Value.ToArray(multipleHeaderValues[i].Key);
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (7)
203Add(item.Key, item.Value); 214if (bits.Length < item.Value.Length) 217Array.Resize(ref bits, item.Value.Length); 218for (int i = old; i < item.Value.Length; ++i) 227bits = new HeaderBit[item.Value.Length]; 228for (int i = 0; i < item.Value.Length; ++i) 235for (int i = 0; i < item.Value.Length; ++i)
System\ServiceModel\Dispatcher\MessageFilter.cs (4)
95data = item.Value; 121data = item.Value; 136results.Add(item.Value); 149results.Add(item.Value);
System\ServiceModel\Dispatcher\MessageFilterTable.cs (2)
100entries[i++] = new Entry(item.Key, item.Value, GetPriority(item.Key)); 212this.Add(item.Key, item.Value);
System\ServiceModel\Dispatcher\MessageQueryTable.cs (1)
87this.Add(item.Key, item.Value);
System\ServiceModel\Dispatcher\QueryMatcher.cs (3)
177result.Key, (TResult)(object)result.Value.GetResultAsString())); 183result.Key, (TResult)(object)result.Value.GetResultAsBoolean())); 188result.Key, (TResult)(object)result.Value));
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
131this.AddNamespace(ns.Key, ns.Value);
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (2)
97entries[i++] = new Entry(item.Key, item.Value); 172this.Add(item.Key, item.Value);
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (4)
650if ((item.Value.Expires <= DateTime.UtcNow) || (item.Value.State == RegistrationState.Deleted)) 653meshEntry.EntryList.Remove(item.Value); 654meshEntry.Service2EntryTable.Remove(item.Value.Address.ServicePath);
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
203this.Add(item.Key, item.Value); 351data = matchingPair.Value;
System\ServiceModel\XamlIntegration\XPathMessageContextMarkupExtension.cs (1)
59context.AddNamespace(ns.Key, ns.Value);
System\UriTemplate.cs (11)
225this.variables.AddDefaultValue(uppercaseKey, kvp.Value); 233else if (string.Compare(kvp.Value, UriTemplate.NullableDefault, StringComparison.OrdinalIgnoreCase) == 0) 245this.additionalDefaults.Add(kvp.Key, kvp.Value); 561kvp.Value.Lookup(result.QueryParameters[kvp.Key], result.BoundVariables); 569result.BoundVariables.Add(kvp.Key, UnescapeDefaultValue(kvp.Value)); 915if (string.Compare(extraParameter, kvp.Value, StringComparison.Ordinal) == 0) 928extraParameters.Add(kvp.Key, kvp.Value); 1020this.defaults.Add(kvp.Key, kvp.Value); 1027this.defaults.Add(kvp.Key.ToUpperInvariant(), kvp.Value); 1476extraParameters.Add(kvp.Key, kvp.Value); 1645if (string.Compare(extraParameter, kvp.Value, StringComparison.Ordinal) == 0)
System\UriTemplateHelpers.cs (4)
35if (kvp.Value.Nature == UriTemplatePartType.Literal) 50if (kvp.Value == UriTemplateQueryValue.Empty) 59if (((UriTemplateLiteralQueryValue)(kvp.Value)).AsRawUnescapedString() != query[queryKeyName]) 266if (kvp.Value.Nature == UriTemplatePartType.Literal)
System\UriTemplateTrieNode.cs (7)
165answer.Items[i].Value)); 373Validate(kvp.Value, allowDuplicateEquivalentUriTemplates); 397Fx.Assert(kvp.Value.locationWithin == UriTemplateTrieIntraNodeLocation.BeforeLiteral, "forward-pointers should always point to a BeforeLiteral location"); 398Fx.Assert(kvp.Value.node.depth == current.depth + 1, "kvp.Value.node.depth == current.depth + 1"); 399Fx.Assert(kvp.Value.node.onFailure.node == current, "back pointer should point back to here"); 400Fx.Assert(kvp.Value.node.onFailure.locationWithin == UriTemplateTrieIntraNodeLocation.AfterLiteral, "back-pointer should be AfterLiteral"); 401nodesQueue.Enqueue(kvp.Value.node);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
138foreach (string value in header.Value)
System.ServiceModel.Activities (38)
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (1)
83XPathMessageQuery xPathQuery = item.Value as XPathMessageQuery;
System\ServiceModel\Activities\Dispatcher\CorrelationKeyCalculator.cs (10)
107if (!string.IsNullOrEmpty(result.Value)) 109values.Add(select.Select[result.Key], result.Value); 143foreach (KeyValuePair<MessageQuery, string> result in this.ExecuteSelect(target, messageToReadHeaders, item.Value, select.IsContextQuery)) 150if (!string.IsNullOrEmpty(result.Value)) 152values.Add(item.Value[result.Key], result.Value); 209keyValueAsString.Append(pair.Key).Append(":").Append(pair.Value).Append(','); 338this.value = keyValue.Value; 370this.hashCode = CombineHashCodes(hash1, keyValue.Value.GetHashCode()); 386sourceValue != targetKeyValue.Value)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (3)
84this.instanceOwnerMetadata.Add(property.Key, new InstanceValue(property.Value)); 96this.instanceOwnerMetadata.Add(property.Key, new InstanceValue(property.Value, 114this.instanceMetadataChanges.Add(pair.Key, new InstanceValue(pair.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly));
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (1)
698saveCommand.InstanceMetadataChanges.Add(pair.Key, pair.Value);
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
1528data[WorkflowNamespace.VariablesPath.GetName(mappedVariable.Key)] = new InstanceValue(mappedVariable.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional); 1561data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new InstanceValue(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
System\ServiceModel\Activities\InitializeCorrelation.cs (2)
60Fx.Assert(pair.Value != null, "pair.Value should be validated during cache metadata"); 61dictionary.Add(pair.Key, pair.Value.Get(context));
System\ServiceModel\Activities\InternalSendMessage.cs (1)
1368if (object.ReferenceEquals(localLastUsedCacheItem.Value, instance.CacheExtension))
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
62temp = item.Value as T;
System\ServiceModel\Activities\ReceiveParametersContent.cs (6)
80if (pair.Value != null) 82this.argumentTypes[index] = pair.Value.ArgumentType; 111RuntimeArgument newRuntimeArgument = new RuntimeArgument(pair.Key, pair.Value.ArgumentType, ArgumentDirection.Out); 112metadata.Bind(pair.Value, newRuntimeArgument); 123requestFormatter.Parameters.Add(OutArgument.CreateReference(parameter.Value, parameter.Key)); 132responseFormatter.Parameters.Add(OutArgument.CreateReference(parameter.Value, parameter.Key));
System\ServiceModel\Activities\SendParametersContent.cs (6)
96if (pair.Value != null) 98this.argumentTypes[index] = pair.Value.ArgumentType; 127RuntimeArgument newRuntimeArgument = new RuntimeArgument(pair.Key, pair.Value.ArgumentType, ArgumentDirection.In); 128metadata.Bind(pair.Value, newRuntimeArgument); 141requestFormatter.Parameters.Add(InArgument.CreateReference(parameter.Value, parameter.Key)); 151responseFormatter.Parameters.Add(InArgument.CreateReference(parameter.Value, parameter.Key));
System\ServiceModel\Activities\SerializableInstanceKey.cs (2)
28this.metadata.Add(pair.Key, new SerializableInstanceValue(pair.Value)); 78metadata.Add(pair.Key, pair.Value.ToInstanceValue());
System\ServiceModel\Activities\WorkflowService.cs (2)
306if (constrants.Key != null && constrants.Value != null) 308clonedSettings.AdditionalConstraints.Add(constrants.Key, new List<Constraint>(constrants.Value));
System\ServiceModel\MessageQuerySet.cs (1)
55destination.Add(vkpair.Value, vkpair.Key);
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\MessageExtensionMethods.cs (2)
121MessageHeaders messageHeaders = property.Value as MessageHeaders; 133message.Properties.Add(property.Key, property.Value);
System.ServiceModel.Internals (9)
System\Runtime\Collections\NullableKeyDictionary.cs (3)
142Add(item.Key, item.Value); 158return item.Value == null ? this.nullKeyValue == null : item.Value.Equals(this.nullKeyValue);
System\Runtime\Collections\ObjectCache.cs (3)
253if (ShouldPurgeItem(cacheItem.Value, now)) 255cacheItem.Value.LockedDispose(); 290itemsToClose[i].Value.LocalDispose();
System\Runtime\Collections\OrderedDictionary.cs (3)
31this.privateDictionary.Add(pair.Key, pair.Value); 121Add(item.Key, item.Value); 147return this.privateDictionary[(object)item.Key].Equals(item.Value);
System.ServiceModel.Routing (1)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (1)
266this.Add(item.Key, item.Value);
System.ServiceModel.WasHosting (4)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (4)
89this.Bindings.Add(entry.Key, entry.Value.ToArray()); 90entry.Value.Clear(); 425this.Bindings.Add(entry.Key, entry.Value.ToArray()); 426entry.Value.Clear();
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (1)
70nvc[this.queryMapping[i].Key] = this.qsc.ConvertValueToString(parameters[i], this.queryMapping[i].Value);
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (1)
79parameters[i] = this.qsc.ConvertStringToValue(queryVal, this.queryMapping[i].Value);
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (2)
266UriTemplateTable table = pair.Value; 340UriTemplateTable table = pair.Value;
System.Web (30)
Compilation\BuildManagerHost.cs (1)
315if (filePath.Equals(pair.Value, StringComparison.Ordinal)) {
Compilation\BuildProvidersCompiler.cs (2)
798CacheCompileErrors(pair.Key, pair.Value); 801CacheAssemblyResults(pair.Key, pair.Value);
Configuration\FolderLevelBuildProviderCollection.cs (1)
102buildProviders.AddRange(pair.Value);
Hosting\ApplicationManager.cs (2)
534LockableAppDomainContext ac = p.Value; 1221appDomain.SetData(entry.Key, entry.Value);
Hosting\HostingEnvironment.cs (1)
494setter(sw.Key, sw.Value);
Hosting\ProcessHost.cs (1)
1179return copiedError.Value;
ModelBinding\CollectionModelBinderUtil.cs (1)
33dictionary[element.Key] = element.Value;
ModelBinding\DictionaryValueProvider`1.cs (1)
22object rawValue = entry.Value;
ModelBinding\ModelStateDictionary.cs (3)
21_innerDictionary.Add(entry.Key, entry.Value); 122return DictionaryHelpers.FindKeysWithPrefix(this, key).All(entry => entry.Value.Errors.Count == 0); 131this[entry.Key] = entry.Value;
ModelBinding\MutableObjectModelBinder.cs (1)
174ComplexModelResult complexModelResult = entry.Value;
Routing\ParsedRoute.cs (5)
83if (IsRoutePartNonEmpty(newValue.Value)) { 85acceptedValues.Add(newValue.Key, newValue.Value); 96acceptedValues.Add(parameterName, currentValue.Value); 144if (!RoutePartsEqual(value, defaultValue.Value)) { 485matchedValues.Add(defaultValue.Key, defaultValue.Value);
Routing\Route.cs (4)
112routeData.Values.Add(value.Key, value.Value); 118routeData.DataTokens[prop.Key] = prop.Value; 145vpd.DataTokens[prop.Key] = prop.Value; 178if (!ProcessConstraint(httpContext, constraintsItem.Value, constraintsItem.Key, values, routeDirection)) {
Routing\RouteCollection.cs (1)
345if (namedRoute.Value == route) {
UI\TemplateControl.cs (1)
438SyncEventMethodInfo info = entry.Value;
UI\WebControls\Content.cs (1)
111attribs[pair.Key] = pair.Value;
UI\WebControls\MethodParametersDictionary.cs (2)
75states[i] = ((IStateManager)kvp.Value).SaveViewState(); 166Add(item.Key, item.Value);
UI\WebControls\ValidationSummary.cs (1)
289foreach (ModelError error in pair.Value.Errors) {
UI\WebParts\PersonalizationStateInfoCollection.cs (1)
141if (de.Value > ipos) {
System.Web.DynamicData (4)
DynamicData\ControlFilterExpression.cs (1)
141MetaColumn column = entry.Value;
DynamicData\DynamicControl.cs (1)
201var value = PropertyConverter.ObjectFromString(propInfo.PropertyType, propInfo, entry.Value);
DynamicData\DynamicHyperLink.cs (2)
222routeValues[key] = entry.Value; 230routeValues[pk.Key] = pk.Value;
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (1)
105if (null == newKey.Value)
System\Data\WebControls\EntityDataSourceView.cs (1)
1048int numEntities = (_originalProperties.First().Value).Count;
System\Data\WebControls\EntityDataSourceWrapper.cs (1)
192object keyValue = reference.Value;
System.Web.Extensions (23)
ApplicationServices\ProfileService.cs (1)
214pb[propertyName] = kvp.Value;
ClientServices\Providers\ClientSettingsProvider.cs (4)
556if (de.Value != null && !setting.PropertyType.IsAssignableFrom(de.Value.GetType())) 559if (!ObjectConverter.TryConvertObjectToType(de.Value, 569value.PropertyValue = de.Value;
Profile\ProfileService.cs (1)
103if (ObjectConverter.TryConvertObjectToType(entry.Value, propertyType, JavaScriptSerializer, out convertedValue)) {
Script\Services\WebServiceMethodData.cs (1)
195result[memberName] = ObjectConverter.ConvertObjectToType(pair.Value, paramType, Owner.Serializer);
UI\PageRequestManager.cs (1)
764EncodeString(writer, HiddenFieldToken, entry.Key, entry.Value);
UI\ProfileServiceManager.cs (1)
229sb.Append(serializer.Serialize(group.Value, JavaScriptSerializer.SerializationFormat.JavaScript));
UI\ScriptComponentDescriptor.cs (5)
184builder.Append(e.Value); 200if (p.Value.Type == ExpressionType.Script) { 212p.Value.AppendValue(Serializer, builder); 233if (p.Value.Type == ExpressionType.ComponentReference) { 245p.Value.AppendValue(Serializer, builder);
UI\ScriptResourceAttribute.cs (1)
249builder.Append(HttpUtility.JavaScriptStringEncode(res.Value));
UI\WebControls\Expressions\PropertyExpression.cs (1)
24object value = ExpressionHelper.BuildObjectValue(pair.Value, property.Type);
UI\WebControls\Expressions\SearchExpression.cs (1)
57string query = Convert.ToString(values.First().Value, CultureInfo.CurrentCulture);
UI\WebControls\QueryableDataSourceHelper.cs (5)
144escapedParameters.Add('@' + key, parameter.Value); 183string value = (parameter.Value == null) ? null : parameter.Value.ToString(); 193whereClause.Parameters.Add(newKey, parameter.Value); 206string value = (string)parameter.Value;
Util\OrderedDictionary.cs (1)
122Add(item.Key, item.Value);
System.Windows.Forms (3)
misc\GDI\WindowsGraphicsCacheManager.cs (3)
162Debug.Assert(WindowsFontCache[index].Value.Hfont != IntPtr.Zero, "Cached WindowsFont was disposed, enable GDI_FINALIZATION_WATCH to track who did it!"); 164WindowsFont wf = WindowsFontCache[index].Value; 212wfont = WindowsFontCache[loopIndex].Value;
System.Workflow.Activities (3)
Rules\Parser\Parser.cs (2)
994kvp.Value.RecordSymbol(rootCompletions); 1003kvp.Value.RecordSymbol(rootCompletions);
StateMachineSubscriptionManager.cs (1)
336subscriptions.Add(dictionaryEntry.Key, dictionaryEntry.Value);
System.Workflow.ComponentModel (11)
AuthoringOM\ActivityExecutionContext.cs (1)
491cachedGrantedLocks.Add(grantedLockEntry.Key, (GrantedLock)grantedLockEntry.Value.Clone());
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (3)
877needRefreshCompileUnits2.Add(entry.Key, entry.Value); 889codeDomLoader.Refresh(entry.Value); 893this.typeLoadErrors[entry.Value] = e;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
198WorkflowCompilerError compilerError = new WorkflowCompilerError(string.Empty, 0, 0, ErrorNumbers.Error_TypeLoad.ToString(CultureInfo.InvariantCulture), entry.Value.Message);
AuthoringOM\DependencyObject.cs (4)
537if (keyValuePair.Value is DependencyObject) 539((DependencyObject)keyValuePair.Value).FixUpMetaProperties(originalPropValue as DependencyObject); 541else if (keyValuePair.Value is WorkflowParameterBindingCollection) 543IList collection = keyValuePair.Value as IList;
AuthoringOM\Design\ActivityDesigner.cs (1)
809string ruleDescription = rule.Value as string;
AuthoringOM\Serializer\DependencyStoreSurrogate.cs (1)
33values.Add(kvp.Value);
System.Workflow.Runtime (29)
Hosting\SharedConnectionWorkflowTransactionService.cs (1)
142kvp.Value.Dispose();
RTTrackingProfile.cs (3)
173_dynamicUser.Add(kvp.Key, kvp.Value); 393_activities.Add(kvp.Key, kvp.Value); 400_user.Add(kvp.Key, kvp.Value);
System\Activities\Statements\Interop.cs (2)
453argument.Set(context, output.Value); 468Argument argument = parameter.Value;
System\Activities\Statements\InteropEnvironment.cs (1)
273if (entry.Value == bookmark)
System\Activities\Statements\InteropExecutor.cs (1)
484propertyInfo.SetValue(rootActivity, input.Value, null);
Tracking.cs (2)
224if (null == kvp.Value.Target) 966Guid current = HashHelper.HashServiceType(replacement.Value);
Tracking\SqlTrackingService.cs (5)
1846SerializedDataItem sItem = kvp.Value as SerializedDataItem; 1848sItem = SerializeDataItem(kvp.Value); 1881TrackingDataItem item = kvp.Value; 1923command.Parameters.Add(DbResourceAllocator.NewDbParameter("@Annotation" + index, kvp.Value)); 1987command.Parameters.Add(DbResourceAllocator.NewDbParameter("@Annotation" + index, kvp.Value));
Tracking\SqlTrackingWorkflowInstance.cs (1)
546WorkflowTrackingRecord rec = kvp.Value;
WorkBatch.cs (5)
133SortedList<long, object> newItems = item.Value; 135_pendingWorkCollection.Add(item.Key, kvp.Key, kvp.Value); 207if (work.MustCommit(workItem.Value)) 251List<object> values = new List<object>(workItem.Value.Values); 262List<object> values = new List<object>(workItem.Value.Values);
WorkflowQueuingService.cs (6)
352NotifyAsynchronousSubscribers(pair.Key, pair.Value, 1); 474Debug.Assert(mergeItem.Value.Transactional, "Queue inside a transactional context is not transactional!"); 476if (mergeItem.Value.Transactional) 491modifiedItems.Add(mergeItem.Key, mergeItem.Value); 500this.persistedQueueStates[modifiedItem.Key] = modifiedItem.Value; 719individualPersistedQueueStateValue.CopyFrom(kv.Value);
WorkflowStateRollbackService.cs (2)
116batch.Value.SetWorkBatchCollection(newWorkflowExecutor.BatchCollection); 122newWorkflowExecutor.BatchCollection.Add(newactivity, batch.Value);
System.WorkflowServices (16)
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
318context.Context[contextElement.Key] = contextElement.Value;
System\Workflow\Activities\ReceiveActivity.cs (7)
1462if (bindings[parameterInfo.Value].Value == null && 1467activity.Name, parameterInfo.Value, this.notNullableParameters[parameterInfo.Key]))); 1470outputs[index] = bindings[parameterInfo.Value].Value; 1512if (!bindings.Contains(parameterInfo.Value)) 1516parameterInfo.Value, 1524parameterInfo.Value, 1529WorkflowParameterBinding parameterBinding = bindings[parameterInfo.Value];
System\Workflow\Activities\SendActivity.cs (6)
669if (bindings.Contains(parameterInfo.Value)) 671inputs[parameterInfo.Key] = bindings[parameterInfo.Value].Value; 677parameterInfo.Value, 704if (bindings.Contains(parameterInfo.Value)) 706bindings[parameterInfo.Value].Value = outputs[parameterInfo.Key]; 712parameterInfo.Value, this.operationName, activity.Name)));
System\Workflow\Runtime\Hosting\ChannelManager.cs (2)
216ChannelManagerHelpers.CreateChannelFactory(endpointData.Key, endpointData.Value, this.endpoints), 217endpointData.Value);
System.Xml (10)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
423defaultNS = nameTable.Add(pair.Value);
System\Xml\Schema\SchemaInfo.cs (2)
301elementDecls.Add(entry.Key, entry.Value); 306elementDeclsByType.Add(entry.Key, entry.Value);
System\Xml\Schema\XmlSchemaValidator.cs (1)
1796defaultNS = nameTable.Add(pair.Value);
System\Xml\Serialization\CodeGenerator.cs (3)
2574Tuple<Type, string> key = new Tuple<Type, string>(item.Value.LocalType, item.Key); 2579freeLocalQueue.Enqueue(item.Value); 2583freeLocalQueue.Enqueue(item.Value);
System\Xml\Serialization\Types.cs (2)
1016if (ShouldBeReplaced(pair.Value, structMapping.TypeDesc.Type, out replacedInfo)) 1031memberInfos[pair.Key] = pair.Value;
System\Xml\XPath\XPathNavigator.cs (1)
1659mngr.AddNamespace( pair.Key, pair.Value );
WindowsBase (12)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (5)
866Debug.Assert(entry.Value != null || _package.InStreamingCreation); 869&& entry.Value == null) // already saved 880if (entry.Value is Nullable<DateTime>) 897_xmlWriter.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ")); 902_xmlWriter.WriteString(entry.Value.ToString());
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (3)
180AddNameDescription(nameDescriptionEntry.Key, nameDescriptionEntry.Value); 189AddApplicationSpecificData(applicationSpecificDataEntry.Key, applicationSpecificDataEntry.Value); 365unsignedPublishLicense.ApplicationSpecificDataDictionary.Add(appSpecificDataEntry.Value.Key, appSpecificDataEntry.Value.Value);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
151if (pair.Value == oldNamespace)
Base\System\Windows\NameScope.cs (3)
265if (item.Value != this[item.Key]) 278if (item.Value == null) 283Add(item.Key, item.Value);
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (1)
80attributeData.Properties.Add(propertyInfo.Key, propertyInfo.Value);
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
228arguments[i] = new CodeAttributeArgument(propertyEntry.Key, GetCodeExpressionForAttributeArgument(attrib, propertyEntry.Value, classData));
Microsoft\Build\Tasks\Xaml\XamlBuildTypeInspectionExtensionContext.cs (1)
38this.markupItemsByTypeName.Add(markupItemByTypeName.Key, markupItemByTypeName.Value);