Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual Studio 2005 beta - an easy question Pin
Dennis C. Dietrich3-Jan-05 7:58
Dennis C. Dietrich3-Jan-05 7:58 
GeneralRe: Visual Studio 2005 beta - an easy question Pin
Dennis C. Dietrich1-Jan-05 5:43
Dennis C. Dietrich1-Jan-05 5:43 
Generalpopulate a dataset from the xml Pin
dhol31-Dec-04 23:48
dhol31-Dec-04 23:48 
GeneralPixel colors found using GDI+ are different!!!!! Pin
abcxyz8231-Dec-04 22:50
abcxyz8231-Dec-04 22:50 
GeneralRe: Pixel colors found using GDI+ are different!!!!! Pin
Heath Stewart31-Dec-04 23:02
protectorHeath Stewart31-Dec-04 23:02 
GeneralUsing "using" Pin
Identity Undisclosed31-Dec-04 20:50
Identity Undisclosed31-Dec-04 20:50 
GeneralRe: Using "using" Pin
Adam Goossens31-Dec-04 22:11
Adam Goossens31-Dec-04 22:11 
GeneralRe: Using "using" Pin
Heath Stewart31-Dec-04 22:56
protectorHeath Stewart31-Dec-04 22:56 
You might want to look at the IL for code using the using statement. When you compile the using construct is expanded to a try/finally (not a try/catch/finally, though):
using (Graphics g = Graphics.FromImage(img))
  g.Clear(Color.White);
Becomes
Graphics g = Graphics.FromImage(img);
try
{
  g.Clear(Color.White);
}
finally
{
  g.Dispose();
}
Using ildasm.exe that ships with the .NET Framework SDK is handy for examing build outputs.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Using "using" Pin
Adam Goossens31-Dec-04 23:21
Adam Goossens31-Dec-04 23:21 
GeneralRe: Using "using" Pin
Heath Stewart1-Jan-05 6:29
protectorHeath Stewart1-Jan-05 6:29 
GeneralRe: Using "using" Pin
Heath Stewart31-Dec-04 23:07
protectorHeath Stewart31-Dec-04 23:07 
Generaluse shellexecute to create an email Pin
TNL31-Dec-04 18:14
TNL31-Dec-04 18:14 
GeneralRe: use shellexecute to create an email Pin
Heath Stewart31-Dec-04 22:53
protectorHeath Stewart31-Dec-04 22:53 
GeneralRe: use shellexecute to create an email Pin
TNL31-Dec-04 23:48
TNL31-Dec-04 23:48 
GeneralRe: use shellexecute to create an email Pin
Heath Stewart1-Jan-05 6:33
protectorHeath Stewart1-Jan-05 6:33 
Generalbits Pin
Tyrus18231-Dec-04 16:37
Tyrus18231-Dec-04 16:37 
GeneralRe: bits Pin
Heath Stewart31-Dec-04 22:58
protectorHeath Stewart31-Dec-04 22:58 
GeneralSIMPLE SIMPLE QUESTION Pin
...---...31-Dec-04 9:44
...---...31-Dec-04 9:44 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
SimonS31-Dec-04 10:29
SimonS31-Dec-04 10:29 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
Heath Stewart31-Dec-04 10:46
protectorHeath Stewart31-Dec-04 10:46 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
...---...31-Dec-04 10:50
...---...31-Dec-04 10:50 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
Heath Stewart31-Dec-04 11:06
protectorHeath Stewart31-Dec-04 11:06 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
SimonS31-Dec-04 11:39
SimonS31-Dec-04 11:39 
GeneralRe: SIMPLE SIMPLE QUESTION Pin
Heath Stewart31-Dec-04 12:22
protectorHeath Stewart31-Dec-04 12:22 
GeneralALMOST WORKS! BUT.... Pin
...---...31-Dec-04 15:39
...---...31-Dec-04 15:39 

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.