vs2005中的新语句using怎么用?
蜗牛水里爬 2005-07-15 03:07:56 Declares the beginning of a Using block and optionally acquires the system resources that the block controls.
Using { resourcelist | resourceexpression }
[ statements ]
End Using
Parts
resourcelist
Required if you do not supply resourceexpression. List of one or more system resources this Using block controls. Multiple resources are separated by commas.
resourceexpression
Required if you do not supply resourcelist. Variable or expression referring to a system resource this Using block controls. If you supply resourceexpression, you must acquire the resource before passing control to the Using statement.
statements
Optional. A block of statements the Using block runs.
End Using
Required. Terminates the Using block and disposes of all the resources it controls.
Each resource in the resourcelist part has the following syntax and parts:
哪位老大能翻译过来~