恒永的初最
我靠
又多出一种了
还是我落伍了?
一、强制资源整理
二、建立命名空间别名
三、using引用命名空间
还有什么?
蝉空--汉武
我面试 叫我说using 是干什么的 我说方便资源释放 然后面试的那个女的说 不是用来释放的是 用来程序模块化的 
月为君丶星为吾愿
这个方面,我都是用法try{}catch(){}finally{}来关闭的@最初的永恒 月为君丶星为吾愿
using 大部分用来搞命名空间把
恒永的初最
对的 正常你就关闭不了了 还要多写个关闭代码
蝉空--汉武
在SqlDataReader 的时候 用try 好点有时候 文件流关闭了 读不到
月为君丶星为吾愿
我的写法跟你不一样
USING只是个语法糖
本质上就是一个try finally
恒永的初最
感觉using代码少点 
蝉空--汉武
@愿吾为星丶君为月 都差不多一样的 你的 conn 写的 全局的
@最初的永恒 同感