Click here to Skip to main content
15,889,642 members
Home / Discussions / C#
   

C#

 
AnswerRe: install Pin
TJoe5-Feb-08 2:12
TJoe5-Feb-08 2:12 
GeneralRe: install Pin
arkiboys5-Feb-08 2:36
arkiboys5-Feb-08 2:36 
Generalapp config file for the windows services Pin
M. J. Jaya Chitra5-Feb-08 2:06
M. J. Jaya Chitra5-Feb-08 2:06 
QuestionRe: app config file for the windows services Pin
TJoe5-Feb-08 4:22
TJoe5-Feb-08 4:22 
Questionwhich is best option? Pin
Try5-Feb-08 1:02
Try5-Feb-08 1:02 
AnswerRe: which is best option? Pin
Malcolm Smart5-Feb-08 1:42
Malcolm Smart5-Feb-08 1:42 
GeneralRe: which is best option? Pin
Try5-Feb-08 2:00
Try5-Feb-08 2:00 
AnswerRe: which is best option? Pin
Guffa5-Feb-08 2:10
Guffa5-Feb-08 2:10 
A static variable in a class is the best option (or similar solutions).

Declaring the same value in several places largely defeats the purpose of declaring it at all.

If you use a constant, the value will be inlined when compiling, so if you change the value you have to recompile all code to get the value to change everywhere. If you have a static variable, all classes will always read from the same physical variable.

Experience is the sum of all the mistakes you have done.

GeneralUser login or not to a system Pin
CodingLover5-Feb-08 0:09
CodingLover5-Feb-08 0:09 
GeneralRe: User login or not to a system Pin
Malcolm Smart5-Feb-08 1:48
Malcolm Smart5-Feb-08 1:48 
GeneralRe: User login or not to a system Pin
CodingLover6-Feb-08 0:04
CodingLover6-Feb-08 0:04 
GeneralRe: User login or not to a system Pin
Not Active5-Feb-08 3:37
mentorNot Active5-Feb-08 3:37 
GeneralRe: User login or not to a system Pin
CodingLover6-Feb-08 0:08
CodingLover6-Feb-08 0:08 
GeneralClose Window problem [modified] Pin
Neo Andreson4-Feb-08 23:04
Neo Andreson4-Feb-08 23:04 
GeneralRe: Close Window problem Pin
TJoe5-Feb-08 2:14
TJoe5-Feb-08 2:14 
GeneralRe: Close Window problem Pin
Neo Andreson5-Feb-08 18:22
Neo Andreson5-Feb-08 18:22 
GeneralRe: Close Window problem Pin
TJoe6-Feb-08 2:17
TJoe6-Feb-08 2:17 
Questionhow to add a now treenode in the following code? Pin
samidhas4-Feb-08 22:53
samidhas4-Feb-08 22:53 
AnswerRe: how to add a now treenode in the following code? Pin
Malcolm Smart5-Feb-08 1:54
Malcolm Smart5-Feb-08 1:54 
QuestionHow do I draw a lines in a cirle? Pin
east854-Feb-08 22:53
east854-Feb-08 22:53 
GeneralRe: How do I draw a lines in a cirle? Pin
Abhijit Jana5-Feb-08 0:20
professionalAbhijit Jana5-Feb-08 0:20 
GeneralRe: How do I draw a lines in a cirle? Pin
Guffa5-Feb-08 2:44
Guffa5-Feb-08 2:44 
GeneralRe: How do I draw a lines in a cirle? Pin
east855-Feb-08 20:03
east855-Feb-08 20:03 
GeneralRe: How do I draw a lines in a cirle? Pin
Guffa5-Feb-08 20:57
Guffa5-Feb-08 20:57 
QuestionHow to know when a file created is completed? (in FilestreamWatcher) Pin
Sara1234-Feb-08 22:49
Sara1234-Feb-08 22:49 

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.