Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
GeneralRe: creating an unsafe array in C# Pin
DaveyM6914-Jun-10 11:49
professionalDaveyM6914-Jun-10 11:49 
GeneralRe: creating an unsafe array in C# Pin
Luc Pattyn14-Jun-10 11:52
sitebuilderLuc Pattyn14-Jun-10 11:52 
Questionusing statement equivalent Pin
Al Beback14-Jun-10 5:06
Al Beback14-Jun-10 5:06 
AnswerRe: using statement equivalent Pin
Eddy Vluggen14-Jun-10 5:16
professionalEddy Vluggen14-Jun-10 5:16 
GeneralRe: using statement equivalent Pin
Al Beback14-Jun-10 5:24
Al Beback14-Jun-10 5:24 
GeneralRe: using statement equivalent Pin
Eddy Vluggen14-Jun-10 5:55
professionalEddy Vluggen14-Jun-10 5:55 
AnswerRe: using statement equivalent Pin
J4amieC14-Jun-10 5:22
J4amieC14-Jun-10 5:22 
GeneralRe: using statement equivalent Pin
Al Beback14-Jun-10 5:51
Al Beback14-Jun-10 5:51 
Sounds logical, although I would imagine the compiler would also add an extra check for whether "disposable" is null inside the finally block.

It's interesting that none of the examples you see out there for the using statement ever mention that if you don't assign your IDisposable type to an explicitly declared variable, the compiler will do it for you behind the scenes.

Thanks.
ShamWow

AnswerRe: using statement equivalent [modified] Pin
dan!sh 14-Jun-10 5:46
professional dan!sh 14-Jun-10 5:46 
GeneralRe: using statement equivalent Pin
Al Beback14-Jun-10 5:58
Al Beback14-Jun-10 5:58 
GeneralRe: using statement equivalent Pin
dan!sh 14-Jun-10 6:01
professional dan!sh 14-Jun-10 6:01 
GeneralRe: using statement equivalent Pin
Eddy Vluggen14-Jun-10 6:02
professionalEddy Vluggen14-Jun-10 6:02 
GeneralRe: using statement equivalent Pin
dan!sh 14-Jun-10 6:19
professional dan!sh 14-Jun-10 6:19 
GeneralRe: using statement equivalent Pin
Not Active14-Jun-10 7:35
mentorNot Active14-Jun-10 7:35 
GeneralRe: using statement equivalent Pin
Al Beback14-Jun-10 6:04
Al Beback14-Jun-10 6:04 
AnswerRe: using statement equivalent PinPopular
harold aptroot14-Jun-10 6:01
harold aptroot14-Jun-10 6:01 
GeneralRe: using statement equivalent Pin
Eddy Vluggen14-Jun-10 6:06
professionalEddy Vluggen14-Jun-10 6:06 
GeneralRe: using statement equivalent Pin
harold aptroot14-Jun-10 6:12
harold aptroot14-Jun-10 6:12 
GeneralRe: using statement equivalent Pin
Al Beback14-Jun-10 6:18
Al Beback14-Jun-10 6:18 
Questiondatagrid in Compact Frame work Pin
jashimu14-Jun-10 4:49
jashimu14-Jun-10 4:49 
AnswerMessage Closed Pin
14-Jun-10 7:19
stancrm14-Jun-10 7:19 
GeneralRe: datagrid in Compact Frame work Pin
jashimu18-Jun-10 9:12
jashimu18-Jun-10 9:12 
QuestionFold all code in all of the project with one command Pin
Neo1010114-Jun-10 4:29
Neo1010114-Jun-10 4:29 
AnswerRe: Fold all code in all of the project with one command Pin
R. Giskard Reventlov14-Jun-10 4:58
R. Giskard Reventlov14-Jun-10 4:58 
GeneralRe: Fold all code in all of the project with one command Pin
Neo1010114-Jun-10 8:27
Neo1010114-Jun-10 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.