31 references to GetSerializer
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
848return GetSerializer(objectType, serializerType);
System.Windows.Forms.Design.Tests (30)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (30)
581object serializer1 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 583Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 587object serializer2 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 590Assert.NotSame(serializer2, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass))); 1183Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1186Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1196Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1199Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1213object serializer1 = manager.GetSerializer(objectType, typeof(BaseClass)); 1217object serializer2 = manager.GetSerializer(objectType, typeof(BaseClass)); 1222Assert.Null(manager.GetSerializer(objectType, expectedSerializerType)); 1225Assert.Null(manager.GetSerializer(objectType, expectedSerializerType)); 1228Assert.Null(manager.GetSerializer(objectType, typeof(object))); 1231Assert.Null(manager.GetSerializer(objectType, typeof(object))); 1234Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1237Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1246object serializer1 = manager.GetSerializer(objectType, typeof(BaseClass)); 1250object serializer2 = manager.GetSerializer(objectType, typeof(BaseClass)); 1255object serializer3 = manager.GetSerializer(objectType, expectedSerializerType); 1260object serializer4 = manager.GetSerializer(objectType, expectedSerializerType); 1265object serializer5 = manager.GetSerializer(objectType, typeof(object)); 1270object serializer6 = manager.GetSerializer(objectType, typeof(object)); 1275Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1278Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1285Assert.Throws<MissingMethodException>(() => manager.GetSerializer(null, typeof(ClassWithInterfaceDefaultSerializationProvider))); 1293Assert.Throws<ArgumentNullException>("serializerType", () => manager.GetSerializer(objectType, null)); 1762object serializer1 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 1764Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 1768object serializer2 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 1771Assert.NotSame(serializer2, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)));