In Winforms, all controls have an InvokeRequired property, that returns true if I have to call .[Begin]Invoke on the control in order to modify it.

In WPF, there is an apparently similar construct in DispatcherObject.CheckAccess() and Dispatcher.CheckAccess(), but I am frightened by the EditorBrowsable(EditorBrowsableState.Never) attribute. When I disable editor browsing like this, I use it to means "You should not be doing this. No, really. If this is required solve your immediate problem, you have mis-designed your solution to your overarching problem." On the other hand, the only alternative I've found (and, in fact, my original solution) is Thread.CurrentThread.ManagedThreadId == 1. (It's horrible. And it doesn't work in the generic case. I know. It does work for my limited uses, though.)

The MSDN documentation is silent on the presence of and reasoning behind the EditorBrowsable attribute. Does it indeed mean "do not use this", as it would if I had typed it, or does it have some other less prohibitive meaning?

Edit
Report