Alex Rivera | Logout

What exactly is the 'Anonymously Hosted DynamicMethods Assembly' and how can I make it load manually?

Asked 2010-04-14T09:09:44.083
40

As a .NET developer, the line

'<process name>' (Managed): Loaded 'Anonymously Hosted DynamicMethods Assembly'

probably is familiar to you. My question is simple and straightforward: what exactly is this 'Anonymously Hosted DynamicMethods Assembly' and can I make it (pre)load manually? If so, how? Can this be done via Assembly.Load(...)?

Edit
Report

1 Answer

0

I guess that this is an assembly emitted at run time. Since it's not required to save the assembly to disk, it may not be possible to load it manually (in this case when the code finishes emitting the assembly - into memory - it will use the types defined in the assembly directly - no need to load anything)

For more information see the documentation in msdn.

Best

answered 2010-04-14T11:36:26.127

Your Answer