thank you all..
it worked!
Assembly a = Assembly.LoadFile(this.textBox1.Text.ToString());
Type[] mytypes = a.GetTypes();
foreach(Type t in mytypes)
{
tvMain.Nodes.Add(t.FullName.ToString());
}
"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:eZ**************@TK2MSFTNGP11.phx.gbl...
Darren,
try this
//get the assembly
Assembly myAssembly = Assembly.GetExecutingAssembly();
//get the types defined in the assembly
System.Type [] allTypes = myAssembly.GetTypes();
Shak.
"Darren Clark" <dc******@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP11.phx.gbl...
Say i have namespace FOO..
and i want to get a list of all the types that are declared in FOO
how can i do this?