2 implementations of GetKey
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
80
object? IDictionaryService.
GetKey
(object? value)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
49
object? IDictionaryService.
GetKey
(object? value)
18 references to GetKey
System.Windows.Forms.Design.Tests (13)
System\ComponentModel\Design\DesignerHostTests.cs (13)
916
Assert.Null(service.
GetKey
(null));
917
Assert.Null(service.
GetKey
(new object()));
932
Assert.Same(key1, service.
GetKey
(value1));
935
Assert.Null(service.
GetKey
(null));
936
Assert.Null(service.
GetKey
(new object()));
963
Assert.Same(key1, service.
GetKey
(value1));
993
Assert.Same(key1, service.
GetKey
(value1));
1011
Assert.Same(key1, service.
GetKey
(value1));
1018
Assert.Same(key2, service.
GetKey
(value2));
1024
Assert.Same(key1, service.
GetKey
(value3));
1025
Assert.Null(service.
GetKey
(value1));
1030
Assert.Null(service.
GetKey
(null));
1031
Assert.Null(service.
GetKey
(value3));
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripControlHostTests.cs (5)
2038
Assert.Null(iDictionaryService.
GetKey
(value));
2060
Assert.Null(iDictionaryService.
GetKey
(value));
2143
Assert.Equal("key1", iDictionaryService.
GetKey
("value1"));
2148
Assert.Equal("key1", iDictionaryService.
GetKey
("otherValue"));
2153
Assert.Null(iDictionaryService.
GetKey
(null));