2 implementations of GetKey
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
80object? IDictionaryService.GetKey(object? value)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
49object? IDictionaryService.GetKey(object? value)
18 references to GetKey
System.Windows.Forms.Design.Tests (13)
System\ComponentModel\Design\DesignerHostTests.cs (13)
918Assert.Null(service.GetKey(null)); 919Assert.Null(service.GetKey(new object())); 934Assert.Same(key1, service.GetKey(value1)); 937Assert.Null(service.GetKey(null)); 938Assert.Null(service.GetKey(new object())); 965Assert.Same(key1, service.GetKey(value1)); 995Assert.Same(key1, service.GetKey(value1)); 1013Assert.Same(key1, service.GetKey(value1)); 1020Assert.Same(key2, service.GetKey(value2)); 1026Assert.Same(key1, service.GetKey(value3)); 1027Assert.Null(service.GetKey(value1)); 1032Assert.Null(service.GetKey(null)); 1033Assert.Null(service.GetKey(value3));
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripControlHostTests.cs (5)
2040Assert.Null(iDictionaryService.GetKey(value)); 2062Assert.Null(iDictionaryService.GetKey(value)); 2145Assert.Equal("key1", iDictionaryService.GetKey("value1")); 2150Assert.Equal("key1", iDictionaryService.GetKey("otherValue")); 2155Assert.Null(iDictionaryService.GetKey(null));