Click here to Skip to main content
15,893,161 members

Comments by Juan__Perez (Top 1 by date)

Juan__Perez 30-Jan-12 16:06pm View    
Deleted
Be aware, however, that every time that you compile and load an assembly in this way, it gets loaded into memory and is never unloaded. Therefore, if you invoke the ExecuteLambdaExpression method repeatedly, it will slowly leak memory. One remedy is to create an AppDomain, load the assembly into the AppDomain, execute the method, and then unload the AppDomain.