Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a type from a reference
Message
From
26/11/2015 04:13:07
 
 
To
25/11/2015 22:09:24
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627909
Message ID:
01627912
Views:
48
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform