Simple

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lucent2418
    New Member
    • Jul 2007
    • 3

    #1

    Simple

    I'm new to c# programming. Can someone help me identify how to make the line in bold an instance of an object? I can't tell if oClxX or strNewstCust need to be made an instance. Thanks.

    Assembly assem = Assembly.LoadFr om("C:\\Downloa der.dll");
    Type typClsX = assem.GetType(" Downloader.File ",true);
    object oClsX = Activator.Creat eInstance(typCl sX);
    MethodInfo miGncn = typClsX.GetMeth od("GetNewestCu stomerName",new System.Type[0]);
    string strNewstCust = (string) miGncn.Invoke(o ClsX,null);
Working...