Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
VB.NET General Discussion
if Typeof ... fails
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="JohnH, post: 100425, member: 5139"] So basically you have this code: [code]Interface ISettings End Interface Class DSettings : Implements ISettings End Class [/code] and when you run this code you claim stop is B: [code]Dim x As ISettings = New DSettings If TypeOf x Is DSettings Then Stop 'A Else Stop 'B End If [/code] When compiled this code will stop at A as expected (you can paste this code into your project and run it as posted), so if you are getting different result your code can't be compiled. One reason for this can be that the generated temp files VS puts in Obj folder has corrupted and that the compiled output in Bin folder is left unchanged. I saw this happen last time in VS 2003 some years ago, and the remedy was to exit VS and delete the Obj and Bin folders, when they were generated again the compile process started working again. [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
VB.NET General Discussion
if Typeof ... fails
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom