Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get list of the classes in casual assembly
Message
De
12/03/2010 07:34:41
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
 
À
12/03/2010 03:59:14
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01453908
Message ID:
01454124
Vues:
35
Gregory< what I have missed
I have

public string GetModInfo(string Assemblyname)
{
string vbTab = " ";
var list = (from m in Assembly.Load(Assemblyname).GetModules() select m.GetTypes().Where(x => x.IsClass)).ToList();
foreach (var className in list) { vbTab = vbTab + className.ToString();
}
return vbTab;
}
call it with like
GetModInfo("System.Windows.Forms") from my class
It tells to me - could not find assemby
More long code with - {var assembly = Assembly.Load(assemblyName) ... works fine
Sure, I have referencies to System.Data.Linq and System.Xml.Linq
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform