Click here to Skip to main content
15,898,947 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Question.net frame work config error asp.net [modified] Pin
suriee20-Jan-07 3:47
suriee20-Jan-07 3:47 
QuestionReliability .NET Pin
sjordine19-Jan-07 4:57
sjordine19-Jan-07 4:57 
QuestionWhy value types can inherit System.Object members? Pin
Caetano19-Jan-07 4:30
Caetano19-Jan-07 4:30 
AnswerRe: Why value types can inherit System.Object members? Pin
Dave Kreskowiak19-Jan-07 5:02
mveDave Kreskowiak19-Jan-07 5:02 
Questionhow make my asp.net website browser independent Pin
rama charan19-Jan-07 0:31
rama charan19-Jan-07 0:31 
AnswerRe: how make my asp.net website browser independent Pin
Sylvester george29-Jan-07 1:40
Sylvester george29-Jan-07 1:40 
Questionclear crystalreportviewer data Pin
rama charan18-Jan-07 23:53
rama charan18-Jan-07 23:53 
QuestionCorrect way for constants Pin
shreekar18-Jan-07 23:12
shreekar18-Jan-07 23:12 
Hi
Can somebody point me to a standard/common method of storing and retrieving constants in code?
The things that come to my mind:
1) Strore them in a module.
Drawback: Would not know the origins of the constant by reading the code. There can be more than one module and constants can be spread across them..
2) Store them in a class as Shared (static in C#) variables.
Drawback: Cannot define them as const, hence the probability of somebody changing the value remains.
3) Store them in a class as Shared (static in C#)ReadOnly Properties.
Drawback: None that I can see (actually this occurred to me while typing this post).

What would be your suggestions and what do you do?

As an aside, do you follow some naming convention for these constants to denote what they might contain and to help in classification?



Shreekar

AnswerRe: Correct way for constants Pin
Guffa19-Jan-07 8:09
Guffa19-Jan-07 8:09 
QuestionApplication.UnregisterMessageLoop Method Pin
shreekar18-Jan-07 22:33
shreekar18-Jan-07 22:33 
QuestionVS.NET 2005: Building different versions... Pin
Paul Selormey18-Jan-07 14:56
Paul Selormey18-Jan-07 14:56 
AnswerRe: VS.NET 2005: Building different versions... Pin
Luc Pattyn18-Jan-07 21:43
sitebuilderLuc Pattyn18-Jan-07 21:43 
Questioncaspol command line needed Pin
cj433118-Jan-07 9:34
cj433118-Jan-07 9:34 
QuestionInstalling .Net Framework 2.0 on new Webserver Pin
Jonathan Snyder18-Jan-07 5:25
Jonathan Snyder18-Jan-07 5:25 
AnswerRe: Installing .Net Framework 2.0 on new Webserver Pin
Dave Kreskowiak18-Jan-07 8:28
mveDave Kreskowiak18-Jan-07 8:28 
GeneralRe: Installing .Net Framework 2.0 on new Webserver Pin
Jonathan Snyder18-Jan-07 8:30
Jonathan Snyder18-Jan-07 8:30 
GeneralRe: Installing .Net Framework 2.0 on new Webserver Pin
Dave Kreskowiak18-Jan-07 9:47
mveDave Kreskowiak18-Jan-07 9:47 
QuestionI have created a windows forms control in which Pin
indian14318-Jan-07 1:35
indian14318-Jan-07 1:35 
AnswerRe: I have created a windows forms control in which Pin
Christian Graus18-Jan-07 10:25
protectorChristian Graus18-Jan-07 10:25 
GeneralRe: I have created a windows forms control in which Pin
indian14318-Jan-07 17:54
indian14318-Jan-07 17:54 
QuestionSOAP Request for Apache server??? Pin
Nithin Krishna17-Jan-07 23:51
Nithin Krishna17-Jan-07 23:51 
QuestionHow can i find all the ip addreses in LAN ? Pin
Banks K17-Jan-07 23:35
Banks K17-Jan-07 23:35 
AnswerRe: How can i find all the ip addreses in LAN ? Pin
Dave Kreskowiak18-Jan-07 4:49
mveDave Kreskowiak18-Jan-07 4:49 
QuestionERROR: InvalidProgramException Pin
Aaron VanWieren17-Jan-07 14:03
Aaron VanWieren17-Jan-07 14:03 
AnswerRe: ERROR: InvalidProgramException Pin
ednrgc18-Jan-07 2:39
ednrgc18-Jan-07 2: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.