I am trying to load external Assembly to list out all Types, Methods and Properties during run time, just like Object Browser in Visual Studio. My requirement is, I want to Load external Assembly list out its Members in a treeview and Unload the Assembly or AppDomain after the use. Later in the same project I am using the same assembly to modify and add some more code to it. Since I have already opened the assembly, CompileAssemblyFromFile is not allowing me to Compile and produce the output. How can I deal with this situation? How is Object Browser works in Visual Studio without creating the instance of Assembly or if at all it is created, how to unload it after usage?
P.S.
I have already tried to use another AppDomain to load the assembly but did not success. As the treeview is created in main appdomain, I cannot access this in custom appdomain to add nodes.