Click here to Skip to main content
15,885,435 members
Home / Discussions / C#
   

C#

 
GeneralRe: Case select versus IF Statement Pin
Luc Pattyn17-Nov-08 15:29
sitebuilderLuc Pattyn17-Nov-08 15:29 
QuestionWhat is this friggin .config file? Pin
Dewald17-Nov-08 4:34
Dewald17-Nov-08 4:34 
AnswerRe: What is this friggin .config file? Pin
led mike17-Nov-08 4:46
led mike17-Nov-08 4:46 
GeneralRe: What is this friggin .config file? Pin
Dewald17-Nov-08 21:05
Dewald17-Nov-08 21:05 
GeneralRe: What is this friggin .config file? Pin
led mike18-Nov-08 6:05
led mike18-Nov-08 6:05 
GeneralRe: What is this friggin .config file? Pin
Dewald18-Nov-08 22:03
Dewald18-Nov-08 22:03 
GeneralRe: What is this friggin .config file? Pin
led mike19-Nov-08 5:31
led mike19-Nov-08 5:31 
GeneralRe: What is this friggin .config file? Pin
Dewald19-Nov-08 6:00
Dewald19-Nov-08 6:00 
led mike wrote:
I submit that if those 2 days jeopardize a deadline, then there are far bigger problems with that project than any single developer can solve.


Ha! I like this one. And I fully agree.

After typing up the previous post I gave it some more thought and discussed it with a co-worker during lunch. In future I will refuse to feel guilty for spending company time to research issues such as this. If 2 or 3 days are required for me to get to understand .config files (and I suspect it will more likely be a couple of hours, not days) then that is the amount of time that this project requires extra in order for me to finish it.

I'm not just programming so that I can finish projects, I'm also programming so that I can become better and finish future projects more elegantly, more efficiently and quicker. So it only makes sense that my employer should pay me for researching such issues with the same willingness that he is paying me to do actual developing. Big Grin | :-D


As a matter of interest, I have spent some time today to get to understand .config files and the basics seems to be fairly straight forward. A possible shortcoming (and further studying might reveal this to be moot) is that settings are stored as key/value pairs while I have a need to group key/value pairs according to different sections.

In other words, I can have the following in my config file:
<add key="DatabaseHost" value="192.168.0.5" />
<add key="DatabaseName" value="MyDB" />
<add key="TCPHost" value="192.168.0.10" />
<add key="TCPPort" value="12345" />


but I'd rather have preferred if these could be split into two sections, one called "Database" and one called TCP, each containing the key/value pairs that only pertains to that particular section.

Also, I found a discussion on the MSDN forums[^] where someone else experienced exactly the problem that I experienced and ultimately did not really get an answer to his question. I'm starting to wonder if I'll just have to accept the fact that VS2008 has a different naming scheme than VS2005 despite what the documentation says.
Questionefficient Pin
dole.doug17-Nov-08 4:05
dole.doug17-Nov-08 4:05 
AnswerRe: efficient Pin
Pr@teek B@h!17-Nov-08 4:11
Pr@teek B@h!17-Nov-08 4:11 
GeneralRe: efficient Pin
dole.doug17-Nov-08 5:07
dole.doug17-Nov-08 5:07 
AnswerRe: efficient Pin
Ennis Ray Lynch, Jr.17-Nov-08 5:04
Ennis Ray Lynch, Jr.17-Nov-08 5:04 
AnswerRe: efficient Pin
Alan Balkany18-Nov-08 3:39
Alan Balkany18-Nov-08 3:39 
QuestionHTTP POST problem Pin
gr9fci17-Nov-08 3:40
gr9fci17-Nov-08 3:40 
AnswerRe: HTTP POST problem Pin
leppie17-Nov-08 20:29
leppie17-Nov-08 20:29 
AnswerRe: HTTP POST problem Pin
leppie17-Nov-08 20:31
leppie17-Nov-08 20:31 
QuestionCreating a new WinForms .Net component (question from new comer) Pin
Ahmed Charfeddine17-Nov-08 2:55
Ahmed Charfeddine17-Nov-08 2:55 
Question.NET Runtime 2.0 Error Reporting Pin
jam198217-Nov-08 2:33
jam198217-Nov-08 2:33 
AnswerRe: .NET Runtime 2.0 Error Reporting Pin
sph3rex17-Nov-08 2:48
sph3rex17-Nov-08 2:48 
GeneralRe: .NET Runtime 2.0 Error Reporting Pin
jam198217-Nov-08 3:38
jam198217-Nov-08 3:38 
QuestionAbout binding files to an C# window application Pin
dilshan_02017-Nov-08 2:21
dilshan_02017-Nov-08 2:21 
AnswerRe: About binding files to an C# window application Pin
SeMartens17-Nov-08 2:32
SeMartens17-Nov-08 2:32 
GeneralRe: About binding files to an C# window application Pin
dilshan_02017-Nov-08 2:56
dilshan_02017-Nov-08 2:56 
GeneralRe: About binding files to an C# window application Pin
SeMartens17-Nov-08 4:31
SeMartens17-Nov-08 4:31 
Questiondatarow empty Pin
Melanie Booysen17-Nov-08 1:27
Melanie Booysen17-Nov-08 1:27 

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.