I was playing around with internal interfaces today, trying to get them to work with just the access modifier internal. The compiler didn’t like that very much. Did you ever get this error message:
‘ClassLibrary1.FooClass’ does not implement interface member ‘ClassLibrary1.IFoo.Bar()’. ‘ClassLibrary1.FooClass.Bar()’ is either static, not public, or has the wrong return type
or how about this one:
“The type or namespace name ‘Data’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)”
I get that one all the time! Anyway every time I’d build, I’d get a message in the Task List (we all know that), but in the Task List uses some crazy ListView that doesn’t behave like any other ListView ever. So to view the description like the above, one would have to expand the column by dragging <gasp!> then scroll twice the screen width to read the whole comment.
When I got home I went to my Whidbey preview and I am happy to report that the VS team fixed that. Excellent. Now here’s a good long-winded post with no point.
BTW, I figured out my problem from this post here. I had heard of Explicit Interface implementation before (I swear!) but never saw why anyone would use it.