[Mono-dev] Deferred loading of assemblies in C#?
vargaz at gmail.com
Sun Aug 23 15:54:16 EDT 2009
Its not possible, the compiler needs the referenced assembly in order to
your program is correct or not. You can use reflection to load assemblies at
On Thu, Jul 23, 2009 at 6:03 AM, SebastianGarth <sebastiangarth at gmail.com>wrote:
> Hello, I have a general question with respect to loading assemblies at
> runtime. Specifically, I would like to know if it is possible to reference
> class at compile time and have it resolve at link time? For instance, let's
> say I have the following program:
> using Foo;
> class Test
> static void Main( string [ ] Unused )
> Foo.Bar foobar = new Foo.Bar( );
> foobar.baz( );
> Now the external assembly 'Foo' isn't accessible at compile time, but I
> would like to have my program compile into an 'incomplete' assembly, and
> then later resolve the reference in another step, if that makes sense?
> View this message in context:
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list