Implemented interface member:
property
Instance
System.ComponentModel.ITypeDescriptorContext.Instance
40 writes to Instance
WindowsBase.Tests (40)
System\Windows\Input\KeyConverterTests.cs (40)
24
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, null, false };
25
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(object), false };
28
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(InstanceDescriptor), false };
29
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(Key), false };
30
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None }, null, false };
31
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None }, typeof(object), false };
32
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None }, typeof(string), true };
33
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None }, typeof(InstanceDescriptor), false };
34
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None }, typeof(Key), false };
35
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.Cancel }, null, false };
36
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.Cancel }, typeof(object), false };
37
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.Cancel }, typeof(string), true };
38
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.Cancel }, typeof(InstanceDescriptor), false };
39
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.Cancel }, typeof(Key), false };
40
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.A }, null, false };
41
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.A }, typeof(object), false };
42
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.A }, typeof(string), true };
43
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.A }, typeof(InstanceDescriptor), false };
44
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.A }, typeof(Key), false };
45
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.OemClear }, null, false };
46
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.OemClear }, typeof(object), false };
47
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.OemClear }, typeof(string), true };
48
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.OemClear }, typeof(InstanceDescriptor), false };
49
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.OemClear }, typeof(Key), false };
50
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed }, null, false };
51
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed }, typeof(object), false };
52
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed }, typeof(string), true };
53
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed }, typeof(InstanceDescriptor), false };
54
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed }, typeof(Key), false };
55
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None - 1 }, null, false };
56
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None - 1 }, typeof(object), false };
57
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None - 1 }, typeof(string), false };
58
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None - 1 }, typeof(InstanceDescriptor), false };
59
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.None - 1 }, typeof(Key), false };
60
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed + 1 }, null, false };
61
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed + 1 }, typeof(object), false };
62
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed + 1 }, typeof(string), false };
63
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed + 1 }, typeof(InstanceDescriptor), false };
64
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= Key.DeadCharProcessed + 1 }, typeof(Key), false };
80
var context = new CustomTypeDescriptorContext {
Instance
= new object() };