gregory young <[EMAIL PROTECTED]> wrote:

> The other day I was looking through some code and I came accross
> SqlDataReader.Dispose. In 1.x the Dispose method was and explicit interface
> implementation and as such not visible on the SqlDataReader type. This has
> changed in 2.0 and it is now visible. What is odd is that it is decorated
> with the EditorBrowsable attribute with a Never setting.

> I generally assume I am missing something and that things are not bugs so ..
> what am I missing here?

I'm not sure you're missing anything. It sounds like a bug in VS
intellisense.

Having said that, I found out about the "Never" setting for
EditorBrowsable just the other day, and I was surprised (I'd already
known about Advanced years ago, and put it out of mind). I don't think
the feature is a good idea at all, given how people who use modern IDEs
depend on intellisense - it's a kind of "encapsulation through
obscurity".

I've been bitten lately by a similar thing with respect to WPF -
DebuggerNonUserCode. I find it infuriating when I can't step into code
just because the debugger thinks I might confuse my simple little mind.
It's a fear I have for VS + .NET - a VB-ization of the programming
environment, making the simple things easier and the complex things
harder.

-- Barry

-- 
http://barrkel.blogspot.com/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to