Click here to Skip to main content
15,888,208 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create global variables in C#? Pin
Jeff J13-Mar-03 8:16
Jeff J13-Mar-03 8:16 
AnswerRe: How to create global variables in C#? Pin
Adam Turner13-Mar-03 11:02
Adam Turner13-Mar-03 11:02 
QuestionHow to update a Windows Service Pin
Chris Hansson13-Mar-03 5:55
Chris Hansson13-Mar-03 5:55 
AnswerRe: How to update a Windows Service Pin
Xiangyang Liu 刘向阳13-Mar-03 6:27
Xiangyang Liu 刘向阳13-Mar-03 6:27 
GeneralDefault argument values Pin
Alexandru Savescu13-Mar-03 4:23
Alexandru Savescu13-Mar-03 4:23 
GeneralRe: Default argument values Pin
Daniel Turini13-Mar-03 4:45
Daniel Turini13-Mar-03 4:45 
GeneralRe: Default argument values Pin
Alexandru Savescu13-Mar-03 5:00
Alexandru Savescu13-Mar-03 5:00 
GeneralRe: Default argument values Pin
Daniel Turini13-Mar-03 5:17
Daniel Turini13-Mar-03 5:17 
Alexandru Savescu wrote:
I think I was not clear enough.
No, you were. I wasn't, sorry.

This page explains it better than me:

"
Because IL always calls a method passing a complete set of arguments, the value of an absent argument is determined at compile time, not at run time. This has versioning consequences. For example, say a ComponentAssembly.dll assembly contains a method that has an optional Int32 argument whose default value is 5. Now imagine an AppAssembly.exe assembly that contains a call to this method and the optional argument isn’t specified. When compiling AppAssembly.exe, the compiler emits IL code that passes 5 to the method. Let’s say that the method in ComponentAssembly.dll has its optional parameter’s default value changed to 123 and the assembly is rebuilt. If the AppAssembly.exe assembly isn’t rebuilt, then at run time, 5 is passed to the method—the new default value (123) isn’t passed to the method unless the code in AppAssembly.exe is also recompiled.
"


http://www.microsoft.com/mspress/books/sampchap/6199e.asp[^]


It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
GeneralRe: Default argument values Pin
Alexandru Savescu13-Mar-03 5:28
Alexandru Savescu13-Mar-03 5:28 
GeneralRe: Default argument values Pin
Andy Smith13-Mar-03 6:46
Andy Smith13-Mar-03 6:46 
GeneralRe: Default argument values Pin
Nick Parker13-Mar-03 8:22
protectorNick Parker13-Mar-03 8:22 
GeneralCasting userdefined parameter class Pin
Venkatraman12-Mar-03 20:18
Venkatraman12-Mar-03 20:18 
GeneralRe: Casting userdefined parameter class Pin
leppie13-Mar-03 6:19
leppie13-Mar-03 6:19 
GeneralSynchronized collections Pin
Don Miguel12-Mar-03 19:47
Don Miguel12-Mar-03 19:47 
GeneralRe: Synchronized collections Pin
Kannan Kalyanaraman12-Mar-03 21:24
Kannan Kalyanaraman12-Mar-03 21:24 
GeneralRe: Synchronized collections Pin
James T. Johnson13-Mar-03 11:33
James T. Johnson13-Mar-03 11:33 
GeneralRe: Synchronized collections Pin
Don Miguel13-Mar-03 19:44
Don Miguel13-Mar-03 19:44 
Generalsharing data Pin
chito12-Mar-03 19:41
chito12-Mar-03 19:41 
GeneralMultiple DataBindings to the same control Pin
Adam Turner12-Mar-03 17:44
Adam Turner12-Mar-03 17:44 
GeneralCentering a form in the screen Pin
Baatezu_Not_Home12-Mar-03 11:42
sussBaatezu_Not_Home12-Mar-03 11:42 
GeneralNevermind - found the answer.... THX Pin
Baatezu_Not_Home12-Mar-03 11:45
sussBaatezu_Not_Home12-Mar-03 11:45 
GeneralRe: Nevermind - found the answer.... THX Pin
James T. Johnson13-Mar-03 11:39
James T. Johnson13-Mar-03 11:39 
GeneralTreeview click events Pin
vlusardi12-Mar-03 9:32
vlusardi12-Mar-03 9:32 
GeneralRe: Treeview click events Pin
Jim Stewart12-Mar-03 10:59
Jim Stewart12-Mar-03 10:59 
GeneralRe: Treeview click events Pin
newdirt12-Mar-03 11:57
newdirt12-Mar-03 11:57 

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.