.NET 4.0 -- AssemblyBuilderAccess.RunAndCollect
Posted by: IKVM.NET Weblog,
on 22 May 2009 |
View original | Bookmarked: 0 time(s)
This week .NET 4.0 beta 1 was released. I've been playing around with it a little
bit and was very excited to find a new Reflection.Emit feature. If you're a reflection
nut like me, the title of this blog entry probably already gave it away. Dynamic assemblies
can now be garbage collected!
A Little Demo
Running this simple example will show that a System.Type instance is created and then
garbage collected.
using System;using System.Reflection;using System.Reflection.Emit;classRunAndCollectDemo
...