-
Apr 20th, 2013, 01:06 PM
#1
-
Apr 20th, 2013, 05:35 PM
#2
Re: Automatic Type Inference not working in one project but works in another
Remove your references to Linq and then add them back in. I had to do that with one of my classes because the reference links were somehow broken.
-
Apr 20th, 2013, 10:40 PM
#3
Re: Automatic Type Inference not working in one project but works in another
On an unrelated note, can I ask why you have Option Explicit On at the top of your code? The only reason to have that is if you have Option Explicit Off in the project properties. Please tell me that's not the case! There is absolutely no justification for anyone to have Option Explicit Off so it should be On in the IDE options, in which case it will be On in every project and therefore On in every code file.
-
Apr 22nd, 2013, 05:12 AM
#4
Re: Automatic Type Inference not working in one project but works in another
@circuits2:
I tried your suggestion, but it didn't help. Removing the reference tells me that I'm missing a Linq reference. Putting it back on has the same effect as shown in my original post.
@jmcilhinney:
I was trying with different combinations of Option Strict and Option Explict to verify that these settings are not the culprits. Also the code shown is only for test. The actual ReportDriver code is about 1500 lines of code. In my projects, the Option Explict is ON by default. However Option Strict is OFF and we set it for each individual class file explicitly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|