2 implementations of GetSerializer
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
83object? IDesignerSerializationManager.GetSerializer(Type? objectType, Type serializerType)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
846object? IDesignerSerializationManager.GetSerializer(Type? objectType, Type serializerType)
32 references to GetSerializer
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
85return ((IDesignerSerializationManager)Manager).GetSerializer(objectType, serializerType);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
71manager.GetSerializer(prop.PropertyType, typeof(CodeDomSerializer)) is not CollectionCodeDomSerializer)
System.Windows.Forms.Design.Tests (28)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (28)
424Assert.Same(expected, iManager.GetSerializer(objectType, mockDesignerSerializationProvider.Object.GetType())); 428Assert.Same(expected, iManager.GetSerializer(objectType, mockDesignerSerializationProvider.Object.GetType())); 1301Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1304Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1315Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1318Assert.Same(expected, iManager.GetSerializer(objectType, serializerType)); 1327object serializer1 = iManager.GetSerializer(objectType, typeof(BaseClass)); 1331object serializer2 = iManager.GetSerializer(objectType, typeof(BaseClass)); 1336Assert.Null(iManager.GetSerializer(objectType, expectedSerializerType)); 1339Assert.Null(iManager.GetSerializer(objectType, expectedSerializerType)); 1342Assert.Null(iManager.GetSerializer(objectType, typeof(object))); 1345Assert.Null(iManager.GetSerializer(objectType, typeof(object))); 1348Assert.Null(iManager.GetSerializer(objectType, typeof(int))); 1351Assert.Null(iManager.GetSerializer(objectType, typeof(int))); 1361object serializer1 = iManager.GetSerializer(objectType, typeof(BaseClass)); 1365object serializer2 = iManager.GetSerializer(objectType, typeof(BaseClass)); 1370object serializer3 = iManager.GetSerializer(objectType, expectedSerializerType); 1375object serializer4 = iManager.GetSerializer(objectType, expectedSerializerType); 1380object serializer5 = iManager.GetSerializer(objectType, typeof(object)); 1385object serializer6 = iManager.GetSerializer(objectType, typeof(object)); 1390Assert.Null(iManager.GetSerializer(objectType, typeof(int))); 1393Assert.Null(iManager.GetSerializer(objectType, typeof(int))); 1396Assert.Null(iManager.GetSerializer(typeof(object), typeof(int))); 1404Assert.Throws<MissingMethodException>(() => iManager.GetSerializer(null, typeof(ClassWithInterfaceDefaultSerializationProvider))); 1413Assert.Throws<ArgumentNullException>("serializerType", () => iManager.GetSerializer(objectType, null)); 1846Assert.Same(serializer, iManager.GetSerializer(typeof(int), mockDesignerSerializationProvider.Object.GetType())); 1850Assert.Null(iManager.GetSerializer(typeof(int), mockDesignerSerializationProvider.Object.GetType())); 1855Assert.Null(iManager.GetSerializer(typeof(int), mockDesignerSerializationProvider.Object.GetType()));
System.Windows.Forms.Primitives (2)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerHelper.cs (2)
29return manager.GetSerializer(objectType, typeof(T)) as T; 34serializer = manager.GetSerializer(objectType, typeof(T)) as T;