67 implementations of
Microsoft.Build (3)
Collections\ArrayDictionary.cs (1)
62object IDictionary.this[object key]
CopyOnWriteDictionary.cs (1)
191object? IDictionary.this[object key]
ReadOnlyEmptyDictionary.cs (1)
149public object this[object key]
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
76public object this[object key]
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
ImmutableSegmentedDictionary`2+Builder.cs (1)
90object? IDictionary.this[object key]
SegmentedDictionary`2.cs (1)
1017object? IDictionary.this[object key]
Microsoft.Build.Tasks.Core (2)
CopyOnWriteDictionary.cs (1)
191object? IDictionary.this[object key]
ReadOnlyEmptyDictionary.cs (1)
149public object this[object key]
Microsoft.Build.Utilities.Core (2)
CopyOnWriteDictionary.cs (1)
191object? IDictionary.this[object key]
ReadOnlyEmptyDictionary.cs (1)
149public object this[object key]
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
67object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
88object? IDictionary.this[object key]
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1051object? IDictionary.this[object key]
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
67object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
88object? IDictionary.this[object key]
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1051object? IDictionary.this[object key]
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
ImmutableSegmentedDictionary`2+Builder.cs (1)
67object? IDictionary.this[object key]
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
88object? IDictionary.this[object key]
SegmentedDictionary`2.cs (1)
1051object? IDictionary.this[object key]
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
409public object this[object key]
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
67object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
88object? IDictionary.this[object key]
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1051object? IDictionary.this[object key]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
126object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
67object? IDictionary.this[object key]
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
88object? IDictionary.this[object key]
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1051object? IDictionary.this[object key]
MSBuild (2)
CopyOnWriteDictionary.cs (1)
191object? IDictionary.this[object key]
ReadOnlyEmptyDictionary.cs (1)
149public object this[object key]
MSBuildTaskHost (3)
CopyOnWriteDictionary.cs (1)
191object? IDictionary.this[object key]
Immutable\ImmutableDictionary.cs (1)
230object IDictionary.this[object key]
ReadOnlyEmptyDictionary.cs (1)
149public object this[object key]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
465public object this[object prefix]
PresentationCore (2)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
271object SC.IDictionary.this[object key]
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
240object SC.IDictionary.this[object key]
PresentationFramework (3)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
339object IDictionary.this[object key]
System\Windows\Markup\XmlnsDictionary.cs (1)
465public object this[object prefix]
System\Windows\ResourceDictionary.cs (1)
383public object this[object key]
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
308object? IDictionary.this[object key]
System\Collections\Generic\SortedDictionary.cs (1)
296object? IDictionary.this[object key]
System\Collections\Generic\SortedList.cs (1)
595object? IDictionary.this[object key]
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1818object? IDictionary.this[object key]
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
430object? IDictionary.this[object key]
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
328object? IDictionary.this[object key]
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
725object? IDictionary.this[object key]
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
403object? IDictionary.this[object key]
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
629object? IDictionary.this[object key]
System.Collections.NonGeneric (2)
System\Collections\DictionaryBase.cs (1)
69object? IDictionary.this[object key]
System\Collections\SortedList.cs (1)
446public virtual object? this[object key]
System.Collections.Specialized (3)
System\Collections\Specialized\HybridDictionary.cs (1)
62public object? this[object key]
System\Collections\Specialized\ListDictionary.cs (1)
30public object? this[object key]
System\Collections\Specialized\OrderedDictionary.cs (1)
179public object? this[object key]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
440object? IDictionary.this[object key]
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
69object? IDictionary.this[object keyword]
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
23public object? this[object key]
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
375object? System.Collections.IDictionary.this[object key] { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } }
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1643object? IDictionary.this[object key]
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
624public virtual object? this[object key]
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
28public object? this[object key]
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
154object? IDictionary.this[object key]
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
59public object? this[object key]
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3255public object? this[object key] { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
170 writes to
dotnet-svcutil-lib (12)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (1)
342codeObj.UserData["Namespace"] = ns;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGeneratorOptions.cs (6)
43_options[index] = value; 59_options["IndentString"] = value; 75_options["BracingStyle"] = value; 91_options["ElseOnClosing"] = value; 107_options["BlankLinesBetweenMembers"] = value; 121_options["VerbatimOrder"] = value;
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3329nspace.UserData["GenerateImports"] = false;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingFormat.cs (1)
171exception.Data[FramingEncodingString.ExceptionKey] = framingFault;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
140targetCompileUnit.UserData[userData.Key] = userData.Value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
766codeTypeReference.UserData[s_referenceKey] = codeType;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
210Table[key] = value;
Microsoft.AspNetCore.Authentication.OAuth (9)
OAuthHandler.cs (6)
100deniedEx.Data["error"] = error.ToString(); 101deniedEx.Data["error_description"] = errorDescription.ToString(); 102deniedEx.Data["error_uri"] = errorUri.ToString(); 119ex.Data["error"] = error.ToString(); 120ex.Data["error_description"] = errorDescription.ToString(); 121ex.Data["error_uri"] = errorUri.ToString();
OAuthTokenResponse.cs (3)
119exception.Data["error"] = error.ToString(); 120exception.Data["error_description"] = errorDescription.ToString(); 121exception.Data["error_uri"] = errorUri.ToString();
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
1529ex.Data["error"] = message.Error; 1530ex.Data["error_description"] = description; 1531ex.Data["error_uri"] = errorUri;
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (1)
144existingValue[item.Key] = item.Value;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
259map[value.Key] = value.Value;
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
259map[value.Key] = value.Value;
Microsoft.CodeAnalysis (2)
InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
35=> dictionary[key] = value;
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
35=> dictionary[key] = value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
74exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\IDictionaryCalls.cs (1)
35=> dictionary[key] = value;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
74exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
184dictionary["a"] = 2;
Collections\ImmutableDictionaryTestBase.cs (1)
170Assert.Throws<NotSupportedException>(() => dictionary["a"] = 2);
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
35=> dictionary[key] = value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
74exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
277exception.Data[s_reportedMarker] = s_reportedMarker;
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
35=> dictionary[key] = value;
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
29 Data["JavaScriptErrorName"] = name;
Microsoft.ML.Core (8)
Environment\HostEnvironmentBase.cs (6)
70ex.Data[ExceptionContextKeys.ThrowingComponent] = ShortName; 71ex.Data[ExceptionContextKeys.ParentComponent] = ParentFullName; 200ex.Data[ExceptionContextKeys.ThrowingComponent] = Parent.ShortName; 201ex.Data[ExceptionContextKeys.ParentComponent] = Parent.ParentFullName; 202ex.Data[ExceptionContextKeys.Phase] = ShortName; 519ex.Data[ExceptionContextKeys.ThrowingComponent] = "Environment";
Utilities\Contracts.cs (2)
105ex.Data[IsMarkedKey] = 1; 133ex.Data[SensitivityKey] = innerSensitivity | sensitivity;
Microsoft.ML.CpuMath (2)
src\Microsoft.ML.Core\Utilities\Contracts.cs (2)
105ex.Data[IsMarkedKey] = 1; 133ex.Data[SensitivityKey] = innerSensitivity | sensitivity;
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2229field.UserData["WithEvents"] = true;
PresentationCore (2)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
3390e.Data[ExceptionContext.Key] = new ExceptionContext(e.Data[ExceptionContext.Key], e.StackTrace, plsrun, lsrun); 3397e.Data[ExceptionContext.Key] = new ExceptionContext(null, methodName, plsrun, lsrun);
PresentationFramework (1)
System\Windows\Documents\AdornerLayer.cs (1)
948infoMap[key] = adornerInfos;
ReachFramework (10)
Serialization\Manager\MetroSerializationManager.cs (4)
524_serializersTable[serializerType] = reachSerializer; 737_typesCacheTable[type] = typeCacheItem; 919_typesDependencyPropertiesCacheTable[type] = cachedItem; 981_typesCacheTable[serializableObjectType] = typeCacheItem;
Serialization\Manager\ReachNamespaceInfo.cs (1)
113_innerDictionary[type] = value;
Serialization\Manager\XpsSerializationManager.cs (5)
1313_typeSerializableDependencyProperties[typeof(System.Windows.Documents.FixedPage)] = 1330_typeSerializableDependencyProperties[typeof(System.Windows.Documents.FixedDocument)] = 1347_typeSerializableDependencyProperties[typeof(System.Windows.Documents.FixedDocumentSequence)] = 1377_typeNoneSerializableClrProperties[typeof(System.Windows.Documents.FixedDocument)] = 1394_typeNoneSerializableClrProperties[typeof(System.Windows.Documents.FixedDocumentSequence)] =
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2459nspace.UserData["GenerateImports"] = false;
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2244nspace.UserData["GenerateImports"] = false;
System.ComponentModel.TypeConverter (9)
System\ComponentModel\Design\DesignerVerb.cs (2)
25Properties["Text"] = text == null ? null : ParameterReplacementRegex.Replace(text, ""); 46set => Properties["Description"] = value;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
643cache[s_extenderPropertiesKey] = properties; 798cache[ExtenderProviderKey] = currentExtenders; 1318cache[s_extenderProviderPropertiesKey] = properties;
System\ComponentModel\TypeDescriptor.cs (4)
1935cache[s_pipelineAttributeFilterKeys[pipelineType]] = filterCache; 2133cache[s_pipelineFilterKeys[pipelineType]] = cacheItem; 2172cache[s_pipelineInitializeKeys[pipelineType]] = members; 2273cache[s_pipelineMergeKeys[pipelineType]] = cacheValue;
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray();
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
97ex.Data["HTTP2_ENABLED"] = false;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
471exception.Data["SETTINGS_ENABLE_CONNECT_PROTOCOL"] = false; 874ex.Data["HTTP2_ENABLED"] = false;
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (2)
247e.Data["MemFailPointState"] = new MemoryFailPointState(sizeInMegabytes, segmentSize, 259e.Data["MemFailPointState"] = new MemoryFailPointState(sizeInMegabytes, segmentSize,
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStore.cs (1)
237h[key.Key] = entry.Value;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingFormat.cs (1)
172exception.Data[FramingEncodingString.ExceptionKey] = framingFault;
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
24collection[key] = value;
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
282data[key] = value;
System.Windows.Forms (2)
System\Resources\ResXResourceReader.cs (1)
621data[nodeInfo.Name] = _assemblyNames is null ? dataNode.GetValue(_typeResolver) : dataNode.GetValue(_assemblyNames);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1080dictionary[element] = bounds;
System.Windows.Forms.Design (78)
System\ComponentModel\Design\ComponentDesigner.cs (5)
612attributes[typeof(InheritanceAttribute)] = InheritanceAttribute; 640events[evt.Name] = TypeDescriptor.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.Yes); 668properties[prop.Name] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.Yes); 683properties[de.Key] = inheritedPropDesc; 713properties[SettingsKeyName] = TypeDescriptor.CreateProperty(
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2815table[name] = statements;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
519statement.UserData["statement-ordering"] = "end"; 541statement.UserData["statement-ordering"] = "begin"; 545statement.UserData["statement-ordering"] = "end";
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
36typeDecl.UserData[s_initMethodKey] = method;
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
72assign.UserData[nameof(IContainer)] = nameof(IContainer);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
55attach.UserData[typeof(Delegate)] = eventToSerialize.EventType;
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
343declaration.UserData[s_initMethodKey] = ctor;
System\Drawing\Design\ToolboxItem.cs (11)
56set => Properties["AssemblyName"] = value; 70set => Properties["DependentAssemblies"] = value?.Clone(); 80set => Properties["Bitmap"] = value; 90set => Properties["OriginalBitmap"] = value; 100set => Properties["Company"] = value; 115set => Properties["Description"] = value; 125set => Properties["DisplayName"] = value; 136set => Properties["Filter"] = value; 147set => Properties["IsTransient"] = value; 172set => Properties["TypeName"] = value; 350Properties[entry.Name] = entry.Value;
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
378statement.UserData["statement-ordering"] = "begin"; 381statement.UserData["statement-ordering"] = "end";
System\Windows\Forms\Design\ControlDesigner.cs (4)
1633properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ControlDesigner), prop, []); 1643properties["Controls"] = TypeDescriptor.CreateProperty( 1652properties["Size"] = new CanResetSizePropertyDescriptor(sizeProp); 1656properties["Locked"] = TypeDescriptor.CreateProperty(
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (4)
238properties["Width"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), prop, []); 249properties["Name"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), 260properties["Name"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), 267properties["UserAddedColumn"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), "UserAddedColumn", typeof(bool),
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (2)
105properties["ValueMember"] = TypeDescriptor.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []); 111properties["DisplayMember"] = TypeDescriptor.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
373properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(DataGridViewDesigner), prop, empty);
System\Windows\Forms\Design\DocumentDesigner.cs (7)
1240properties["TrayHeight"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), "TrayHeight", typeof(int), 1246properties["TrayLargeIcon"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), "TrayLargeIcon", typeof(bool), 1252properties["DoubleBuffered"] = TypeDescriptor.CreateProperty(typeof(Control), "DoubleBuffered", typeof(bool), 1280properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, empty); 1287properties["AutoScaleDimensions"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible); 1293properties["AutoScaleMode"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible, BrowsableAttribute.Yes); 1301properties[noBrowseProps[i]] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
95properties["FlowDirection"] = TypeDescriptor.CreateProperty(typeof(FlowLayoutPanelDesigner), flowDirection, []);
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
468properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, empty); 476properties["AutoScaleBaseSize"] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible); 483properties["ClientSize"] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, new DefaultValueAttribute(new Size(-1, -1)));
System\Windows\Forms\Design\ImageListDesigner.cs (2)
118properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ImageListDesigner), prop, []); 129properties["Images"] = TypeDescriptor.CreateProperty(typeof(ImageListDesigner), "Images", typeof(OriginalImageCollection), attrs);
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
67properties[nameof(IntegralHeight)] = TypeDescriptor.CreateProperty(typeof(ListBoxDesigner), integralHeightProp, []); 72properties[nameof(Dock)] = TypeDescriptor.CreateProperty(typeof(ListBoxDesigner), dockProp, []);
System\Windows\Forms\Design\ListViewDesigner.cs (2)
120properties["OwnerDraw"] = TypeDescriptor.CreateProperty(typeof(ListViewDesigner), ownerDrawProp, []); 127properties["View"] = TypeDescriptor.CreateProperty(typeof(ListViewDesigner), viewProp, []);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
179properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(MaskedTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
113defaultValues["Offset"] = new Size(childControl.Bounds.X - bounds.X, childControl.Bounds.Y - bounds.Y);
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
2101properties["DrawGrid"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "DrawGrid", typeof(bool), 2107properties["SnapToGrid"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "SnapToGrid", typeof(bool), 2113properties["GridSize"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "GridSize", typeof(Size), 2121properties["CurrentGridSize"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "CurrentGridSize", typeof(Size),
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
80properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(RichTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
233properties[de.Key] = TypeDescriptor.CreateProperty(descriptor.ComponentType, descriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
477properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TabControlDesigner), prop, empty);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
2104properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TableLayoutPanelDesigner), prop, attribs); 2117properties["Controls"] = TypeDescriptor.CreateProperty(typeof(TableLayoutPanelDesigner), "Controls", typeof(DesignerTableLayoutControlCollection), attrs);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
114properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TextBoxBaseDesigner), prop, []);
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
60properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TextBoxDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
451properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripContainerDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
95events[noBrowseEvents[i]] = TypeDescriptor.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2217properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
566properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripDropDownDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
682defaultValues["Text"] = site.Name; 1049properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripItemDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2279properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripMenuItemDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
522events[noBrowseEvents[i]] = TypeDescriptor.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No); 565properties[noBrowseProps[i]] = TypeDescriptor.CreateProperty(propertyDescriptor.ComponentType, propertyDescriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden); 577properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripPanelDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
54properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(UserControlDocumentDesigner), prop, []);
331 references to
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (2)
992resourceLogger.LogCritical(ex, "Failed to apply argument value '{ArgKey}'. A dependency may have failed to start.", ex.Data["ArgKey"]); 993_logger.LogDebug(ex, "Failed to apply argument value '{ArgKey}' to '{ResourceName}'. A dependency may have failed to start.", ex.Data["ArgKey"], er.ModelResource.Name);
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
50var value = vars[key];
AzureAppServicesSample (1)
Startup.cs (1)
61var value = vars[key];
DefaultBuilder.SampleApp (1)
Startup.cs (1)
41var value = vars[key];
dotnet-svcutil-lib (32)
CodeDomFixup\CodeDomHelpers.cs (1)
213return type.UserData[ReferenceKey] as CodeTypeDeclaration;
CodeDomFixup\MethodCreationHelper.cs (1)
102CodeNamespace ns = this.ClientType.UserData["Namespace"] as CodeNamespace;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGeneratorOptions.cs (6)
39return _options[index]; 54object o = _options["IndentString"]; 70object o = _options["BracingStyle"]; 86object o = _options["ElseOnClosing"]; 102object o = _options["BlankLinesBetweenMembers"]; 116object o = _options["VerbatimOrder"];
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
1110object o = e.UserData[property];
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
250return (TempMethod)Dictionary[key];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
582type = (Type)typeReference.UserData[s_codeUserDataActualTypeKey]; 843Type actualType = (Type)baseContractCodeDomInfo.TypeReference.UserData[s_codeUserDataActualTypeKey];
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
178xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString()));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DictionaryTraceRecord.cs (1)
27object value = _dictionary[key];
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
368if (exception.Data[dataItem] == null) 374xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString()));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (1)
583if (excludeKeys != null && key != null && excludeKeys[key] != null)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingFormat.cs (1)
159framingFault = exception.Data[FramingEncodingString.ExceptionKey] as string;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1687failedReferenceType = ex.Data[FailedReferenceTypeExceptionKey] as Type;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
760return codeTypeReference.UserData[s_referenceKey] as CodeTypeDeclaration;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (9)
2209get { return (Message)Table[name]; } 2309get { return (Port)Table[name]; } 2409get { return (PortType)Table[name]; } 2509get { return (Binding)Table[name]; } 2609get { return (Service)Table[name]; } 2709get { return (MessagePart)Table[name]; } 2891get { return (FaultBinding)Table[name]; } 3073get { return (OperationFault)Table[name]; } 3191if (Table[key] != null)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (3)
38get { return (ServiceDescription)Table[ns]; } 208ServiceDescription item = (ServiceDescription)Table[key]; 209((ServiceDescription)value).Next = (ServiceDescription)Table[key];
IISSample (1)
Startup.cs (1)
77var value = vars[key];
Infrastructure.Common (2)
JsonSerializer.cs (2)
22sb.AppendFormat(" {0} : \"{1}\",\n", key, dictionary[key] == null ? String.Empty : dictionary[key].ToString());
Microsoft.AspNetCore.Authentication.Test (12)
GoogleTests.cs (6)
467Assert.Equal("access_denied", ex.Data["error"]); 468Assert.Equal("whyitfailed", ex.Data["error_description"]); 469Assert.Equal("https://example.com/fail", ex.Data["error_uri"]); 504Assert.Equal("itfailed", ex.Data["error"]); 505Assert.Equal("whyitfailed", ex.Data["error_description"]); 506Assert.Equal("https://example.com/fail", ex.Data["error_uri"]);
OAuthTests.cs (3)
457Assert.Equal("incorrect_client_credentials", context.Failure.Data["error"]); 458Assert.Equal("The client_id and/or client_secret passed are incorrect.", context.Failure.Data["error_description"]); 459Assert.Equal("https://example.com/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials", context.Failure.Data["error_uri"]);
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (3)
84Assert.Equal("itfailed", ex.Data["error"]); 85Assert.Equal("whyitfailed", ex.Data["error_description"]); 86Assert.Equal("https://example.com/fail", ex.Data["error_uri"]);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TryGetValueProvider.cs (1)
99value = success ? weakDict[key] : null;
Microsoft.Build (4)
CommunicationsUtilities.cs (1)
406table[(string)key] = (string)vars[key];
TaskParameter.cs (3)
307escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 435string value = (string)wrappedMetadata[key];
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskHost_Tests.cs (2)
103Assert.NotNull(((ITaskItem[])targetOutputs["Build"])[0]); 105TaskItem targetOutputItem = ((ITaskItem[])targetOutputs["Build"])[0] as TaskItem;
BackEnd\TaskHostConfiguration_Tests.cs (2)
786Assert.Equal(metadataFromX[metadataName], metadataFromY[metadataName]);
Microsoft.Build.UnitTests.Shared (3)
TestEnvironment.cs (3)
452if (operation != "removed" || !string.IsNullOrEmpty((string)subset[key])) 455superset[key].ShouldBe(subset[key]);
Microsoft.CodeAnalysis (3)
InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
31=> dictionary[key];
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
31=> dictionary[key];
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\IDictionaryCalls.cs (1)
31=> dictionary[key];
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableDictionaryBuilderTestBase.cs (2)
181Assert.Equal(1, dictionary["a"]); 185Assert.Equal(2, dictionary["a"]);
Collections\ImmutableDictionaryTestBase.cs (2)
174Assert.Null(dictionary["a"]); 175Assert.Equal(3, dictionary["c"]);
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
31=> dictionary[key];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
265if (exception.Data[s_reportedMarker] != null) 270if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
31=> dictionary[key];
Microsoft.DotNet.Arcade.Sdk (1)
src\SaveItems.cs (1)
39metadataPairs = metadata.Keys.OfType<string>().Select(key => new KeyValuePair<string, string>(key, metadata[key] as string));
Microsoft.Extensions.ApiDescription.Client (2)
MetadataSerializer.cs (2)
65var value = metadata[key]; 79var value = metadata[key];
Microsoft.ML.Core (2)
Utilities\Contracts.cs (2)
132innerSensitivity = (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.None; 152return (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.Unknown;
Microsoft.ML.CpuMath (2)
src\Microsoft.ML.Core\Utilities\Contracts.cs (2)
132innerSensitivity = (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.None; 152return (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.Unknown;
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
69pairs.Add((key, (string)vars[key]));
MSBuild (4)
CommunicationsUtilities.cs (1)
406table[(string)key] = (string)vars[key];
TaskParameter.cs (3)
307escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 435string value = (string)wrappedMetadata[key];
MSBuildTaskHost (3)
TaskParameter.cs (3)
307escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 435string value = (string)wrappedMetadata[key];
NativeIISSample (1)
Startup.cs (1)
75var value = vars[key];
PresentationCore (1)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3390e.Data[ExceptionContext.Key] = new ExceptionContext(e.Data[ExceptionContext.Key], e.StackTrace, plsrun, lsrun);
PresentationFramework (7)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (2)
289if (dict["__RestrictedErrorObjectReference"] is __RestrictedErrorObject restrictedObject) 292return (bool)dict["__HasRestrictedLanguageErrorObject"]!;
System\Windows\Documents\AdornerLayer.cs (3)
905ArrayList adornerInfos = infoMap[key] as ArrayList; 945if (infoMap[key] == null) 952adornerInfos = (ArrayList)infoMap[key];
System\Windows\Markup\BamlRecordReader.cs (2)
4044return dictionary[key]; 4048return new DeferredResourceReferenceHolder(key, dictionary[key]);
ReachFramework (7)
Serialization\Manager\MetroSerializationManager.cs (4)
519reachSerializer = (ReachSerializer)_serializersTable[serializerType]; 702TypeCacheItem typeCacheItem = (TypeCacheItem)_typesCacheTable[type]; 762cachedItem = (TypeDependencyPropertiesCacheItem)_typesDependencyPropertiesCacheTable[type]; 946TypeCacheItem typeCacheItem = (TypeCacheItem)_typesCacheTable[serializableObjectType];
Serialization\Manager\ReachNamespaceInfo.cs (1)
108return (SerializableObjectNamespaceInfo)_innerDictionary[type];
Serialization\Manager\XpsSerializationManager.cs (2)
749TypeSerializableDependencyProperties[serializableObject.GetType()]; 800TypeNoneSerializableClrProperties[serializableObject.GetType()];
System.CodeDom (4)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
508object o = e.UserData[property];
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
2172object o = e.UserData["AllowLateBound"]; 2184object o = e.UserData["RequireVariableDeclaration"]; 2194object o = e.UserData[property];
System.Collections.NonGeneric (1)
System\Collections\SortedList.cs (1)
165values[i] = d[keys[i]];
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\MetadataViewProvider.cs (8)
105ex.InnerException.Data[MetadataViewGenerator.MetadataViewType], 106ex.InnerException.Data[MetadataViewGenerator.MetadataItemKey], 107ex.InnerException.Data[MetadataViewGenerator.MetadataItemValue], 108ex.InnerException.Data[MetadataViewGenerator.MetadataItemSourceType], 109ex.InnerException.Data[MetadataViewGenerator.MetadataItemTargetType]), ex); 116ex.InnerException.Data[MetadataViewGenerator.MetadataViewType], 117ex.InnerException.Data[MetadataViewGenerator.MetadataItemKey], 118ex.InnerException.Data[MetadataViewGenerator.MetadataItemTargetType]), ex);
System.ComponentModel.TypeConverter (18)
System\ComponentModel\Design\DesignerVerb.cs (2)
38object? result = Properties["Description"]; 56object? result = Properties["Text"];
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
588properties = cache[s_extenderPropertiesKey] as PropertyDescriptorCollection; 704existingExtenders = cache[ExtenderProviderKey] as IExtenderProvider[]; 1243properties = cache[s_extenderProviderPropertiesKey] as PropertyDescriptor[];
System\ComponentModel\TypeDescriptor.cs (3)
1892if (cache[s_pipelineAttributeFilterKeys[pipelineType]] is AttributeFilterCacheItem filterCache && filterCache.IsValid(filter)) 1977if (cache[s_pipelineFilterKeys[pipelineType]] is FilterCacheItem cacheItem && cacheItem.IsValid(componentFilter)) 2150if (cache[s_pipelineInitializeKeys[pipelineType]] is ICollection cachedMembers && cachedMembers.Count == members.Count)
System\Drawing\PointConverter.cs (2)
99object? x = propertyValues["X"]; 100object? y = propertyValues["Y"];
System\Drawing\RectangleConverter.cs (4)
102object? x = propertyValues["X"]; 103object? y = propertyValues["Y"]; 104object? width = propertyValues["Width"]; 105object? height = propertyValues["Height"];
System\Drawing\SizeConverter.cs (2)
97object? width = propertyValues["Width"]; 98object? height = propertyValues["Height"];
System\Drawing\SizeFConverter.cs (2)
94object? width = propertyValues["Width"]; 95object? height = propertyValues["Height"];
System.Configuration.ConfigurationManager (2)
System\Configuration\LocalFileSettingsProvider.cs (2)
118StoredSetting ss = (StoredSetting)settings[settingName]; 387StoredSetting ss = (StoredSetting)settings[settingName];
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
150return exception.Data[typeof(InterpretedFrameInfo)] as InterpretedFrameInfo[];
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
578type = (Type?)typeReference.UserData[s_codeUserDataActualTypeKey]; 826Type? actualType = (Type?)baseContractCodeDomInfo.TypeReference?.UserData[s_codeUserDataActualTypeKey]; 1158Type? actualType = (Type?)baseContractCodeDomInfo.TypeReference?.UserData[s_codeUserDataActualTypeKey];
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingFormat.cs (1)
160framingFault = exception.Data[FramingEncodingString.ExceptionKey] as string;
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
280if (data != null && !data.IsFixedSize && !data.IsReadOnly && data[key] == null)
System.Windows.Forms (11)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
126(int)propertyValues[nameof(Start)]!, 127(int)propertyValues[nameof(Length)]!);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
145return new SelectionRange((DateTime)propertyValues["Start"]!, 146(DateTime)propertyValues["End"]!);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (3)
87(string)propertyValues["PropertyName"]!, 88propertyValues["DataSource"], 89(string)propertyValues["DataMember"]!);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
172uiFont = (Font?)uiService.Styles["DialogFont"];
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1008object? bounds = dictionary[element];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (2)
83(int)propertyValues[nameof(TableLayoutPanelCellPosition.Column)]!, 84(int)propertyValues[nameof(TableLayoutPanelCellPosition.Row)]!);
System.Windows.Forms.Design (120)
System\ComponentModel\Design\ComponentDesigner.cs (2)
605_inheritanceAttribute = attributes[typeof(InheritanceAttribute)] as InheritanceAttribute; 678PropertyDescriptor? newInnerProp = (PropertyDescriptor?)properties[de.Key];
System\ComponentModel\Design\DesignerActionPanel.cs (11)
65Font = (Font)uiService.Styles["DialogFont"]!; 66if (uiService.Styles["VsColorPanelGradientDark"] is Color vsColorPanelGradientDarkColor) 71if (uiService.Styles["VsColorPanelGradientLight"] is Color vsColorPanelGradientLight) 76if (uiService.Styles["VsColorPanelHyperLink"] is Color vsColorPanelHyperLink) 81if (uiService.Styles["VsColorPanelHyperLinkPressed"] is Color vsColorPanelHyperLinkPressed) 86if (uiService.Styles["VsColorPanelTitleBar"] is Color vsColorPanelTitleBar) 91if (uiService.Styles["VsColorPanelTitleBarUnselected"] is Color vsColorPanelTitleBarUnselected) 96if (uiService.Styles["VsColorPanelTitleBarText"] is Color vsColorPanelTitleBarText) 101if (uiService.Styles["VsColorPanelBorder"] is Color vsColorPanelBorder) 106if (uiService.Styles["VsColorPanelSeparator"] is Color vsColorPanelSeparator) 111if (uiService.Styles["VsColorPanelText"] is Color vsColorPanelText)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
217if (_documentCompileUnit.UserData[typeof(InvalidOperationException)] is InvalidOperationException invalidOperation)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2809statements = (OrderedCodeStatementCollection)table[name]!;
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (2)
54if (statement.UserData["IContainer"] is "IContainer") 72switch (statement.UserData["statement-ordering"])
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
29if (typeDecl.UserData[s_initMethodKey] is not CodeMemberMethod method)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
154object? genFlag = statement.UserData["GeneratedStatement"]; 340if (declaration.UserData[s_initMethodKey] is not CodeConstructor ctor)
System\Drawing\Design\ToolboxItem.cs (10)
55get => (AssemblyName?)Properties["AssemblyName"]; 67AssemblyName[]? names = (AssemblyName[]?)Properties["DependentAssemblies"]; 79get => (Bitmap?)Properties["Bitmap"]; 89get => (Bitmap?)Properties["OriginalBitmap"]; 99get => (string?)Properties["Company"]; 114get => (string?)Properties["Description"]; 124get => (string)Properties["DisplayName"]!; 135get => (ICollection)Properties["Filter"]!; 146get => (bool)Properties["IsTransient"]!; 171get => (string)Properties["TypeName"]!;
System\Windows\Forms\Design\BaseContextMenuStrip.cs (6)
122_selectionMenuItem.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 125_selectionMenuItem.DropDown.Font = (Font)uis.Styles["DialogFont"]!; 127if (uis.Styles["VsColorPanelText"] is Color color) 202Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 204if (uis.Styles["VsColorPanelText"] is Color color) 239Font = (Font)uis.Styles["DialogFont"]!;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
167if (uiService.Styles["VsColorSnaplines"] is Color snaplinesColor) 173if (uiService.Styles["VsColorSnaplinesTextBaseline"] is Color snaplinesTextBaselineColor)
System\Windows\Forms\Design\ComponentTray.cs (10)
124if (uiService.Styles["ArtboardBackground"] is Color backgroundColor) 130else if (uiService.Styles["VsColorDesignerTray"] is Color designerTrayColor) 134else if (uiService.Styles["HighlightColor"] is Color highlightColor) 147if (uiService.Styles["ArtboardBackgroundText"] is Color backgroundTextColor) 151else if (uiService.Styles["VsColorPanelText"] is Color panelTextColor) 157Font = (Font)uiService.Styles["DialogFont"]; 1401if (uiService.Styles["ArtboardBackground"] is Color backgroundColor) 1407else if (uiService.Styles["VsColorDesignerTray"] is Color trayColor) 1411else if (uiService.Styles["HighlightColor"] is Color highlightColor) 1425Font = (Font)uiService.Styles["DialogFont"];
System\Windows\Forms\Design\ControlDesigner.cs (4)
1148if (defaultValues is not null && defaultValues["Parent"] is IComponent parent 1631if (properties[shadowProps[i]] is PropertyDescriptor prop) 1639if (properties["Controls"] is PropertyDescriptor controlsProp) 1650if (properties["Size"] is PropertyDescriptor sizeProp)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
58uiFont = (Font)uiService.Styles["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
30_builderDialog.Font = (Font)uiService.Styles["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
796object? font = uiService?.Styles["DialogFont"];
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
235PropertyDescriptor? prop = properties["Width"] as PropertyDescriptor; 241prop = properties["Name"] as PropertyDescriptor;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (2)
102PropertyDescriptor? property = (PropertyDescriptor?)properties["ValueMember"]; 108property = (PropertyDescriptor?)properties["DisplayMember"];
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
371if (properties[shadowProps[i]] is PropertyDescriptor prop)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
407if (uiService.Styles["VsColorPanelHyperLink"] is Color color1) 412if (uiService.Styles["VsColorPanelHyperLinkPressed"] is Color color2)
System\Windows\Forms\Design\DesignerFrame.cs (2)
43if (_uiService?.Styles["ArtboardBackground"] is Color color) 268if (_uiService?.Styles["HorizontalResizeGrip"] is Color color)
System\Windows\Forms\Design\DocumentDesigner.cs (4)
1277prop = (PropertyDescriptor)properties[shadowProps[i]]; 1284prop = (PropertyDescriptor)properties["AutoScaleDimensions"]; 1290prop = (PropertyDescriptor)properties["AutoScaleMode"]; 1298prop = (PropertyDescriptor)properties[noBrowseProps[i]];
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
91PropertyDescriptor flowDirection = (PropertyDescriptor)properties["FlowDirection"];
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
465prop = (PropertyDescriptor)properties[shadowProps[i]]; 473prop = (PropertyDescriptor)properties["AutoScaleBaseSize"]; 480prop = (PropertyDescriptor)properties["ClientSize"];
System\Windows\Forms\Design\ImageListDesigner.cs (2)
116if (properties[shadowProps[i]] is PropertyDescriptor prop) 124PropertyDescriptor? imageProp = (PropertyDescriptor?)properties["Images"];
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
65if (properties[nameof(IntegralHeight)] is PropertyDescriptor integralHeightProp) 70if (properties[nameof(Dock)] is PropertyDescriptor dockProp)
System\Windows\Forms\Design\ListViewDesigner.cs (2)
116PropertyDescriptor ownerDrawProp = (PropertyDescriptor)properties["OwnerDraw"]; 123PropertyDescriptor viewProp = (PropertyDescriptor)properties["View"];
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
176prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
30Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
95if (defaultValues["Parent"] is Control parentControl && host.GetDesigner(parentControl) is ParentControlDesigner parentControlDesigner)
System\Windows\Forms\Design\ParentControlDesigner.cs (10)
441location = (Point)defaultValues["Location"]; 443size = (Size)defaultValues["Size"]; 446offset = (Size)defaultValues["Offset"]; 540ToolboxSnapDragDropEventArgs e = defaultValues["ToolboxSnapDragDropEventArgs"] as ToolboxSnapDragDropEventArgs; 1235if (defaultValues is not null && defaultValues["Size"] is not null && defaultValues["Location"] is not null && defaultValues["Parent"] is not null) 1238Rectangle bounds = new((Point)defaultValues["Location"], (Size)defaultValues["Size"]); 1241if (defaultValues["Parent"] is not IComponent parent)
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
77prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
186if (uis?.Styles["SmartTagText"] is Color clr)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
474PropertyDescriptor prop = properties[shadowProps[i]] as PropertyDescriptor;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
362menu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 363if (uis.Styles["VsColorPanelText"] is Color color) 2101PropertyDescriptor prop = (PropertyDescriptor)properties[shadowProps[i]]; 2111PropertyDescriptor controlsProp = (PropertyDescriptor)properties["Controls"];
System\Windows\Forms\Design\TabOrder.cs (1)
48_tabFont = uisvc is not null && uisvc.Styles["DialogFont"] is Font dialogFont ? dialogFont : DefaultFont;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
112if (properties[shadowProps[i]] is PropertyDescriptor prop)
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
57prop = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
448PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
92eventDescriptor = (EventDescriptor?)events[noBrowseEvents[i]];
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1473Control parent = defaultValues is not null ? defaultValues["Parent"] as Control : null; 2214prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
392contextMenu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 393contextMenu.Font = (Font)uis.Styles["DialogFont"]; 394if (uis.Styles["VsColorPanelText"] is Color color)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
563prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (5)
81item.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 82item.DropDown.Font = (Font)uis.Styles["DialogFont"]; 168ToolStripProfessionalRenderer renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 172Font font = (Font)uis.Styles["DialogFont"]; 177object panelTextObject = uis.Styles["VsColorPanelText"];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1046prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2276prop = (PropertyDescriptor)properties[shadowProps[i]];
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
519EventDescriptor? eventDescriptor = (EventDescriptor?)events[noBrowseEvents[i]]; 562PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[noBrowseProps[i]]; 574PropertyDescriptor? propertyDescriptor = (PropertyDescriptor?)properties[shadowProps[i]];
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
51prop = (PropertyDescriptor?)properties[shadowProps[i]];
System.Windows.Forms.Design.Tests (35)
System\Drawing\Design\ToolboxItemTests.cs (32)
57Assert.Null(item.Properties["AssemblyName"]); 65Assert.Equal(value.FullName, ((AssemblyName)item.Properties["AssemblyName"]).FullName); 66Assert.NotSame(value, item.Properties["AssemblyName"]); 67Assert.NotSame(item.Properties["AssemblyName"], item.Properties["AssemblyName"]); 76Assert.Null(item.Properties["AssemblyName"]); 84Assert.Equal(value.FullName, ((AssemblyName)item.Properties["AssemblyName"]).FullName); 85Assert.NotSame(value, item.Properties["AssemblyName"]); 86Assert.NotSame(item.Properties["AssemblyName"], item.Properties["AssemblyName"]); 113Assert.Same(value, item.Properties["Bitmap"]); 118Assert.Same(value, item.Properties["Bitmap"]); 137Assert.Equal(expected, item.Properties["Company"]); 142Assert.Equal(expected, item.Properties["Company"]); 171Assert.Null(item.Properties["DependentAssemblies"]); 177Assert.Equal(value, item.Properties["DependentAssemblies"]); 178Assert.NotSame(value, item.Properties["DependentAssemblies"]); 186Assert.Null(item.Properties["DependentAssemblies"]); 192Assert.Equal(value, item.Properties["DependentAssemblies"]); 193Assert.NotSame(value, item.Properties["DependentAssemblies"]); 213Assert.Equal(expected, item.Properties["Description"]); 218Assert.Equal(expected, item.Properties["Description"]); 237Assert.Equal(expected, item.Properties["DisplayName"]); 242Assert.Equal(expected, item.Properties["DisplayName"]); 269Assert.Equal(expected, item.Properties["Filter"]); 274Assert.Equal(expected, item.Properties["Filter"]); 293Assert.Equal(value, item.Properties["IsTransient"]); 298Assert.Equal(value, item.Properties["IsTransient"]); 324Assert.Same(value, item.Properties["OriginalBitmap"]); 329Assert.Same(value, item.Properties["OriginalBitmap"]); 348Assert.Equal(expected, item.Properties["TypeName"]); 353Assert.Equal(expected, item.Properties["TypeName"]);
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
17uiServiceMock.Setup(uis => uis.Styles["DialogFont"]).Returns(expectedFont);
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
35mockUIService.Setup(ui => ui.Styles["DialogFont"]).Returns(expectedFont);
System\Windows\Forms\Design\DesignerFrameTests.cs (1)
34mockUIService.Setup(ui => ui.Styles["ArtboardBackground"]).Returns(Color.Red);
System.Windows.Forms.Primitives (5)
System\Windows\Forms\PaddingConverter.cs (5)
86int all = (int)propertyValues[nameof(Padding.All)]!; 94(int)propertyValues[nameof(Padding.Left)]!, 95(int)propertyValues[nameof(Padding.Top)]!, 96(int)propertyValues[nameof(Padding.Right)]!, 97(int)propertyValues[nameof(Padding.Bottom)]!);
VBCSCompiler.UnitTests (1)
NamedPipeTestUtil.cs (1)
67var sharedServer = servers[pipeName];
xunit.assert (2)
Sdk\CollectionTracker.cs (2)
213 var valueX = dictionaryX[key]; 214 var valueY = dictionaryY[key];