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)
580object serializer1 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 582Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 586object serializer2 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 589Assert.NotSame(serializer2, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass))); 1182Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1185Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1195Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1198Assert.Same(expected, manager.GetSerializer(objectType, serializerType)); 1212object serializer1 = manager.GetSerializer(objectType, typeof(BaseClass)); 1216object serializer2 = manager.GetSerializer(objectType, typeof(BaseClass)); 1221Assert.Null(manager.GetSerializer(objectType, expectedSerializerType)); 1224Assert.Null(manager.GetSerializer(objectType, expectedSerializerType)); 1227Assert.Null(manager.GetSerializer(objectType, typeof(object))); 1230Assert.Null(manager.GetSerializer(objectType, typeof(object))); 1233Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1236Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1245object serializer1 = manager.GetSerializer(objectType, typeof(BaseClass)); 1249object serializer2 = manager.GetSerializer(objectType, typeof(BaseClass)); 1254object serializer3 = manager.GetSerializer(objectType, expectedSerializerType); 1259object serializer4 = manager.GetSerializer(objectType, expectedSerializerType); 1264object serializer5 = manager.GetSerializer(objectType, typeof(object)); 1269object serializer6 = manager.GetSerializer(objectType, typeof(object)); 1274Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1277Assert.Null(manager.GetSerializer(objectType, typeof(int))); 1284Assert.Throws<MissingMethodException>(() => manager.GetSerializer(null, typeof(ClassWithInterfaceDefaultSerializationProvider))); 1292Assert.Throws<ArgumentNullException>("serializerType", () => manager.GetSerializer(objectType, null)); 1761object serializer1 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 1763Assert.Same(serializer1, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(PublicDesignerSerializationProvider))); 1767object serializer2 = manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)); 1770Assert.NotSame(serializer2, manager.GetSerializer(typeof(ClassWithPublicDesignerSerializer), typeof(BaseClass)));