Monday, May 31, 2010

'USING' keyword in C#

USING as Directive- Using keyword is used for importing namespaces to our classes.

USING Block- If you declare any unmanaged object in 'USING' block, You need not explicitly dispose that object. Once the block execution is over the dispose() will be called automatically.

No comments:

Post a Comment