Click here to Skip to main content
15,919,341 members
Home / Discussions / C#
   

C#

 
AnswerRe: Modifying Windows Service app.config file Pin
Michael Bookatz17-Mar-09 2:35
Michael Bookatz17-Mar-09 2:35 
GeneralRe: Modifying Windows Service app.config file Pin
User 265531917-Mar-09 2:41
User 265531917-Mar-09 2:41 
GeneralRe: Modifying Windows Service app.config file Pin
Michael Bookatz17-Mar-09 2:54
Michael Bookatz17-Mar-09 2:54 
GeneralRe: Modifying Windows Service app.config file Pin
User 265531917-Mar-09 2:56
User 265531917-Mar-09 2:56 
AnswerRe: Modifying Windows Service app.config file Pin
Le centriste17-Mar-09 2:43
Le centriste17-Mar-09 2:43 
AnswerRe: Modifying Windows Service app.config file Pin
Simon P Stevens17-Mar-09 5:04
Simon P Stevens17-Mar-09 5:04 
QuestionSwitch Statement Help Pin
Paul Unsworth17-Mar-09 1:36
Paul Unsworth17-Mar-09 1:36 
AnswerRe: Switch Statement Help Pin
Pete O'Hanlon17-Mar-09 1:41
mvePete O'Hanlon17-Mar-09 1:41 
As long as you have nothing in between, you can fall through case statements in C# using:
switch (myItem)
{
  case 1:
  case 2:
  case 4:
    DoSomething();
    break;
  case 3:
  case 5:
    DoSomethingElse();
    break;
  default:
    DoSomethingElseAltogether();
    break;
}
As soon as you put something between two of your case conditions, you have to fall back to the normal way of doing things.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys



GeneralRe: Switch Statement Help Pin
Paul Unsworth17-Mar-09 1:42
Paul Unsworth17-Mar-09 1:42 
AnswerRe: Switch Statement Help Pin
DaveyM6917-Mar-09 1:41
professionalDaveyM6917-Mar-09 1:41 
AnswerRe: Switch Statement Help Pin
benjymous17-Mar-09 1:43
benjymous17-Mar-09 1:43 
QuestionC# Encryption and Decrypt in Java Pin
satsumatable17-Mar-09 1:02
satsumatable17-Mar-09 1:02 
AnswerRe: C# Encryption and Decrypt in Java Pin
SeMartens17-Mar-09 1:54
SeMartens17-Mar-09 1:54 
AnswerRe: C# Encryption and Decrypt in Java Pin
Mbah Dhaim17-Mar-09 7:08
Mbah Dhaim17-Mar-09 7:08 
QuestionProcess.Start() parameter with space char problem Pin
half-life17-Mar-09 0:48
half-life17-Mar-09 0:48 
AnswerRe: Process.Start() parameter with space char problem Pin
Eddy Vluggen17-Mar-09 1:07
professionalEddy Vluggen17-Mar-09 1:07 
GeneralRe: Process.Start() parameter with space char problem Pin
half-life17-Mar-09 1:39
half-life17-Mar-09 1:39 
Questionhow to get out from the outer for Pin
erdem0117-Mar-09 0:16
erdem0117-Mar-09 0:16 
AnswerRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 0:25
professional Xmen Real 17-Mar-09 0:25 
AnswerRe: how to get out from the outer for Pin
Eddy Vluggen17-Mar-09 0:27
professionalEddy Vluggen17-Mar-09 0:27 
AnswerRe: how to get out from the outer for Pin
Simon P Stevens17-Mar-09 0:29
Simon P Stevens17-Mar-09 0:29 
AnswerRe: how to get out from the outer for Pin
Eslam Afifi17-Mar-09 0:40
Eslam Afifi17-Mar-09 0:40 
AnswerRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 0:53
mvePete O'Hanlon17-Mar-09 0:53 
GeneralRe: how to get out from the outer for Pin
Colin Angus Mackay17-Mar-09 0:58
Colin Angus Mackay17-Mar-09 0:58 
GeneralRe: how to get out from the outer for Pin
Simon P Stevens17-Mar-09 1:30
Simon P Stevens17-Mar-09 1:30 

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.