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