Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get list of the classes in casual assembly
Message
De
17/03/2010 08:02:08
 
 
À
17/03/2010 02:00:51
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01453908
Message ID:
01455039
Vues:
43
Vlad,

There is more than one assembly System.Windows.Forms
From what I understand, you have to be more specific

Set a breakpoint at Console.ReadLine();

Then look at the members of both assembly1 and assembly2 in the debugger
		static void Main()
		{
			string assemblyName1 = @"System.Windows.Forms, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089";
			string assemblyName2 = @"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
			

			// this may be of interest as well
			// I think you can use usedAssemblies[ i ]
			//var usedAssemblies = AppDomain.CurrentDomain.GetAssemblies();

			var assembly1 = Assembly.Load(assemblyName1);
			var assembly2 = Assembly.Load(assemblyName2);
			Console.ReadLine();
		}
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform