9 references to AddToDictionary
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
337dictionaryType.Invoker.AddToDictionary(collection, key, value);
System.Xaml.Tests (8)
System\Xaml\Schema\XamlTypeInvokerTests.cs (8)
107invoker.AddToDictionary(instance, 1, "a"); 108invoker.AddToDictionary(instance, 2, null); 118invoker.AddToDictionary(instance, 1, "a"); 119invoker.AddToDictionary(instance, 2, null); 128Assert.Throws<ArgumentNullException>("instance", () => invoker.AddToDictionary(null, 1, 2)); 135Assert.Throws<NotSupportedException>(() => invoker.AddToDictionary(new object(), 1, 2)); 142Assert.Throws<NotSupportedException>(() => invoker.AddToDictionary(new object(), 1, 2)); 149Assert.Throws<XamlSchemaException>(() => invoker.AddToDictionary(new GetEnumeratorClass(), new object(), "a"));