Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a type from a reference
Message
De
26/11/2015 04:13:07
 
 
À
25/11/2015 22:09:24
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01627909
Message ID:
01627912
Vues:
46
This message has been marked as the solution to the initial question of the thread.
>I have this:
>
>
>Dim loAssembly As System.Reflection.Assembly = Nothing
>loAssembly = System.Reflection.Assembly.LoadFrom(oApp.cHttpFat + "Bin\LevelExtreme.dll")
>loClass = loAssembly.GetType("LevelExtreme.ListClient")
>loList = Activator.CreateInstance(loClass, loParameter)
>
>
>But, I would surely like to avoid loading the dll in memory just to get access to the reference I am looking for.

I think you just need to provide the full assembly name. See the overloads for Type.GetType():
https://msdn.microsoft.com/en-us/library/system.type.gettype(v=vs.110).aspx

Update. e.g: http://stackoverflow.com/questions/3512319/resolve-type-from-class-name-in-a-different-assembly
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform