@ Bill, I got it working by using your example. The reason it didn't really work on the main code I was working with, is that the type had fields that were references to other type lists, and the garbage collector doesn't remove the type then, so I had to null out those fields and then it works. Thanks for helping out.