Passepoil75
Messages postés30Date d'inscriptionvendredi 12 janvier 2007StatutMembreDernière intervention17 septembre 2009 17 sept. 2009 à 20:10
On ait jamais aussi bien servi que par soi-même:
Dim ClassNamespace As String = "Noyau"
Dim Path As String = "\\...\monDll.dll"
Dim a As Reflection.Assembly = Reflection.Assembly.LoadFrom(Path)
Dim assemblyTypes() As Type = a.GetTypes
For Each mytype As Type In assemblyTypes
Dim methode As Reflection.MethodInfo = mytype.GetMethod("ClasseTesteur")
If methode IsNot Nothing Then methode.Invoke(mytype, Nothing)
Next
Passepoil75
Messages postés30Date d'inscriptionvendredi 12 janvier 2007StatutMembreDernière intervention17 septembre 2009 17 sept. 2009 à 14:43
J'ai trouvé ma réponse:
Dim ClassNamespace As String = "Noyau"
Dim Path As String = "\\...\monDll.dll"
Dim a As Reflection.Assembly = Reflection.Assembly.LoadFrom(Path)
Dim assemblyTypes() As Type = a.GetTypes
For Each mytype As Type In assemblyTypes
Me.CheckedListBox1.Items.Add(mytype.Name)
Next
Par contre, est-ce quelqu'un sait comment appeler une fonction shared de la classe?