The following is the equivalent:
Dim a As
System.Reflecti on.Assembly=Sys tem.Reflection. Assembly.LoadFr om("employee.dl l")
Dim t As Type=a.GetType( "Company.Employ ee")
You didn't specify a type for the "a" variable, causing it be 'Object' by
default, which of course doesn't have a "GetType" method.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"Chris" wrote:
I am looking at this code in C#
Assembly a=Assembly.Load From("employee. dll");
Type t=a.GetType("Co mpany.Employee" );
I can't figure out what it is in VB.net can anyone help. I try
Dim login_assembly = Assembly.LoadFi le(Server.MapPa th("bin/login.dll"))
Dim login_type As Type = login_assembly. GetType("clsLog in")
and I get a blue squiggly line under get type saying there is no default
property for 'system.type'
Regards