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

.NET (Core and Framework)

 
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 
AnswerRe: Correct way for constants Pin
Guffa19-Jan-07 8:09
Guffa19-Jan-07 8:09 
There are two types of constant values, constants and read-only members. You have to decide what type you want to use.

Constants are compiled into the code, so if you use a constant from a different project, and then change the constant in that project, you have to recompile the code that uses the constant in order for it to change there too.

Read-only members are read from the source every time, so if you change the value, it's guaranteed to change everywhere it's used. Also, a read-only member can get it's value from an external source like AppSettings. If the external source is expensive to read (like a file or a web service), you can read it the first time it's used and cache it in a local variable.

I usually create a static class called Settings where I put application wide constants and settings. It will contain constants and read-only static properties.

---
Year happy = new Year(2007);

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 
GeneralRe: ERROR: InvalidProgramException Pin
Aaron VanWieren18-Jan-07 3:09
Aaron VanWieren18-Jan-07 3:09 

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.