0

I have a class library ClassLibrary1.dll in c:\MyDll\ClassLibrary1.dll with this

public class Class1
{
    public void Run()
    {
        Console.WriteLine("Inside Class 1 Library ");
    }
}

Using AppDomain how would i create a instance for the class Class1 and execute the method "Run" in .net 2.0 Note: I do not want to use Assembly.LoadFile

2
  • 1
    Why do you not want to use Assembly.LoadFile? That is the method you should use. Commented Apr 23, 2012 at 10:25
  • i need to unload this assembly from memory after execution Commented Apr 23, 2012 at 10:30

1 Answer 1

1

This page discusses creating app domains, loading assemblies and types into that app domain, and then closing the app domain:

http://msdn.microsoft.com/en-us/library/yk22e11a.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.