Jump to content
Tuts 4 You

How do i add a reference to another C# assembly with dnlib


Recommended Posts

Posted (edited)

target assembly like this:

namespace A{

class Program {
        static void Main() {

...}

}

}

new assembly:

namespace B{

class Program {
        static void M( ) {

...}

}

}

2 assembly in the same path, now i want to call method M( ) in target method main( ), If there was an example on how to add a reference or any ideas, it would be helpful. Thanks.

Edited by despy3
Posted

i have get it by TypeRefUser and MemberRefUser...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...