[2005] Help converting to VB.NET
I'm working on some code for an asynchronous WMI query. The only problem is that the example code I found is using CSharp instead of VB. I'm stuck on this particular line:
ObjectHandler objectHandler = new ObjectHandler();
The VB.NET version of that should be something like:
Dim handler As objectHandler = New objectHandler
I get a "Type Undefined" error for objectHandler through.
Is the objectHandler class specific to CSharp only? I can't seem to find it in VB.NET 2005.
Re: [2005] Help converting to VB.NET
I've never heard of it, myself, but it's possible it's inside of a library that you haven't referenced yet.
Re: [2005] Help converting to VB.NET
There's no such thing as a class that's specific to a particular .NET language. If you want to know where a Framework class lives you (surprise, surprise) go to the MSDN library. According to the documentation there is no class with that name in the .NET Framework, so it is presumably defined in some code that comes from the author of the article you're reading. You're either going to have to incorporate that code into your project or reference a library that contains it.