Disposing of object has nothing to do with its accessibility. Actually, objects are not even classified into disposed and non-disposed.
itself has no predefined meaning, except using in the "
" construct, only if this method is written as implementation of
The standard purpose of
is 1) cleaning up unmanaged resources, 2) calling
of other objects thus disposing a chain of related objects of some hierarchy of the object model (typical example:
); the ultimate purpose of such chain of calls is -- again -- cleaning of associated unmanaged resources.
There can be some other uses of the interface and its implementation, mainly thanks to the "
" construct functionality. For a funny example, see my Tips/Tricks article (and alternative Tips on the same page; they are good): Hourglass Mouse Cursor Always Changes Back to its Original Image. How?
This should explain the purpose of using and the fact it cannot affect accessibility of any object. Maybe, the question was caused to some different unrelated problem which was misinterpreted.