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