Click here to Skip to main content
15,921,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: odbc .net help Pin
Craig G Fraser25-Jul-05 23:28
Craig G Fraser25-Jul-05 23:28 
GeneralRe: odbc .net help Pin
binglin26-Jul-05 15:13
binglin26-Jul-05 15:13 
GeneralRe: odbc .net help Pin
Craig G Fraser26-Jul-05 20:22
Craig G Fraser26-Jul-05 20:22 
QuestionShould I trust the compiler to optimise? Pin
javaman5925-Jul-05 17:24
javaman5925-Jul-05 17:24 
AnswerRe: Should I trust the compiler to optimise? Pin
Christian Graus25-Jul-05 17:45
protectorChristian Graus25-Jul-05 17:45 
GeneralRe: Should I trust the compiler to optimise? Pin
javaman5925-Jul-05 17:52
javaman5925-Jul-05 17:52 
AnswerRe: Should I trust the compiler to optimise? Pin
EssOEss25-Jul-05 20:15
EssOEss25-Jul-05 20:15 
AnswerRe: Should I trust the compiler to optimise? Pin
Guffa26-Jul-05 3:26
Guffa26-Jul-05 3:26 
The stack frame does not change when you declare variables. The stack frame is created when the method is called, and allocates space for all variables used in the method.

The only difference if you move the declaration is that the scope of the variables change. The space for the variables is still allocated the same way.

I always keep the declaration of the variables separate from the code. This is a practice that I got from Pascal programming. (In Pascal the variable declaration is even placed outside the actual procedure body.) I think that it makes the code clearer, and it actually more closely resembles what is actually happening when the code is executed.

---
b { font-weight: normal; }

QuestionEfficient way to number x-y Axes? Pin
...---...25-Jul-05 13:27
...---...25-Jul-05 13:27 
AnswerRe: Efficient way to number x-y Axes? Pin
Christian Graus25-Jul-05 16:18
protectorChristian Graus25-Jul-05 16:18 
GeneralDAL or no DAL Pin
Tom Wright25-Jul-05 12:40
Tom Wright25-Jul-05 12:40 
GeneralRe: DAL or no DAL Pin
Christian Graus25-Jul-05 16:19
protectorChristian Graus25-Jul-05 16:19 
GeneralReturn an Image from a .DLL Pin
kim3er25-Jul-05 11:39
kim3er25-Jul-05 11:39 
GeneralRe: Return an Image from a .DLL Pin
EssOEss25-Jul-05 20:20
EssOEss25-Jul-05 20:20 
GeneralRe: Return an Image from a .DLL Pin
kim3er25-Jul-05 22:08
kim3er25-Jul-05 22:08 
GeneralRe: Return an Image from a .DLL Pin
kim3er26-Jul-05 7:24
kim3er26-Jul-05 7:24 
GeneralRemoving embedded newlines Pin
Dan Neely25-Jul-05 11:02
Dan Neely25-Jul-05 11:02 
GeneralRe: Removing embedded newlines Pin
EssOEss25-Jul-05 20:21
EssOEss25-Jul-05 20:21 
GeneralRe: Removing embedded newlines Pin
Dan Neely26-Jul-05 2:38
Dan Neely26-Jul-05 2:38 
GeneralForm Resize Pin
25-Jul-05 9:05
suss25-Jul-05 9:05 
GeneralRe: Form Resize Pin
KaptinKrunch25-Jul-05 10:09
KaptinKrunch25-Jul-05 10:09 
GeneralRe: Form Resize Pin
Yigal Agam25-Jul-05 10:15
Yigal Agam25-Jul-05 10:15 
GeneralRe: Form Resize Pin
twoteesbrett25-Jul-05 10:21
twoteesbrett25-Jul-05 10:21 
GeneralRe: Form Resize Pin
Yigal Agam25-Jul-05 10:26
Yigal Agam25-Jul-05 10:26 
GeneralRe: Form Resize Pin
twoteesbrett25-Jul-05 10:42
twoteesbrett25-Jul-05 10:42 

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.