XmlSerializer extraTypes memory leak
问题 I'm developing some application, wich calls lot of XmlSerializer constructor with extraTypes parametr. I've find out, that each call encrease application memory for about 100KB and 2 descriptors (sometimes more). Code example: this code encrease application memory for 100KB and 2 handlers per each call while (true) { Console.ReadLine(); new XmlSerializer(typeof (object), new Type[] {}); } this code encrease application memory for 43024KB and 2004 handlers for (var i = 0; i < 1000; i++) { new