>However, it does support the WITH object command that automatically disposes of the object when the enclosed statements have finished..
>
>
>StreamReader sr = new StreamReader()
>WITH sr
>{
> a bunch of commands here.
>}
>
>
>
>
>
>>>I was trying to use the with...endwith but I gues c# does not support it.
>>
>>No.
>>Cetin
Hmm this is new to me. I knew using ...{} but not this. Does this work as with...endwith? Can you point to some documentation?
Cetin