G
Guest
My requirement is to dynamically specify a class at runtime. I wrote the following code. it's nor functioning
can anyonme help em out
namespace ConsoleApplication
/// <summary
/// Summary description for Class1
/// </summary
///
class
public int a=90
string s="l;k;"
class Class
static void Main(string[] args
ObjectHandle obj = Activator.CreateInstanceFrom("ConsoleApplication1","A"); .// error: Filenotfound ecxeption assembly name is not the apt on
Console.WriteLine("jdksjf")
Console.WriteLine()
A a =(A)obj.Unwrap()
Console.Write(a.a)
}
can anyonme help em out
namespace ConsoleApplication
/// <summary
/// Summary description for Class1
/// </summary
///
class
public int a=90
string s="l;k;"
class Class
static void Main(string[] args
ObjectHandle obj = Activator.CreateInstanceFrom("ConsoleApplication1","A"); .// error: Filenotfound ecxeption assembly name is not the apt on
Console.WriteLine("jdksjf")
Console.WriteLine()
A a =(A)obj.Unwrap()
Console.Write(a.a)
}