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)
916Assert.Null(service.GetKey(null)); 917Assert.Null(service.GetKey(new object())); 932Assert.Same(key1, service.GetKey(value1)); 935Assert.Null(service.GetKey(null)); 936Assert.Null(service.GetKey(new object())); 963Assert.Same(key1, service.GetKey(value1)); 993Assert.Same(key1, service.GetKey(value1)); 1011Assert.Same(key1, service.GetKey(value1)); 1018Assert.Same(key2, service.GetKey(value2)); 1024Assert.Same(key1, service.GetKey(value3)); 1025Assert.Null(service.GetKey(value1)); 1030Assert.Null(service.GetKey(null)); 1031Assert.Null(service.GetKey(value3));
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripControlHostTests.cs (5)
2038Assert.Null(iDictionaryService.GetKey(value)); 2060Assert.Null(iDictionaryService.GetKey(value)); 2143Assert.Equal("key1", iDictionaryService.GetKey("value1")); 2148Assert.Equal("key1", iDictionaryService.GetKey("otherValue")); 2153Assert.Null(iDictionaryService.GetKey(null));