Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
Questionsplit media file Pin
RishiKasnia25-Nov-08 18:31
RishiKasnia25-Nov-08 18:31 
AnswerRe: split media file Pin
Christian Graus25-Nov-08 18:54
protectorChristian Graus25-Nov-08 18:54 
GeneralRe: split media file Pin
RishiKasnia26-Nov-08 1:46
RishiKasnia26-Nov-08 1:46 
AnswerRe: split media file Pin
dan!sh 25-Nov-08 20:50
professional dan!sh 25-Nov-08 20:50 
QuestionException handling Pin
preetpal25-Nov-08 18:15
preetpal25-Nov-08 18:15 
AnswerRe: Exception handling Pin
Guffa25-Nov-08 18:18
Guffa25-Nov-08 18:18 
GeneralRe: Exception handling Pin
preetpal25-Nov-08 18:45
preetpal25-Nov-08 18:45 
GeneralRe: Exception handling Pin
Christian Graus25-Nov-08 18:52
protectorChristian Graus25-Nov-08 18:52 
You have no other choice but to fix your code. You cannot jump back into a try block, your other option is to put a try block around each attempt to assign, and it sounds in general like you're overusing try blocks to allow you to write bad code.

One thing you can do, is write a helper method that takes two values and does the null check and only assigns if it's not null, and call this method 20 times.

Christian Graus

Driven to the arms of OSX by Vista.

GeneralRe: Exception handling Pin
Guffa25-Nov-08 18:53
Guffa25-Nov-08 18:53 
GeneralRe: Exception handling Pin
Thomas Weller25-Nov-08 19:27
Thomas Weller25-Nov-08 19:27 
AnswerRe: Exception handling Pin
Paul Conrad25-Nov-08 18:27
professionalPaul Conrad25-Nov-08 18:27 
AnswerRe: Exception handling Pin
Thomas Weller25-Nov-08 18:38
Thomas Weller25-Nov-08 18:38 
GeneralRe: Exception handling : code Pin
preetpal25-Nov-08 18:59
preetpal25-Nov-08 18:59 
GeneralRe: Exception handling : code Pin
Thomas Weller25-Nov-08 19:17
Thomas Weller25-Nov-08 19:17 
GeneralRe: Exception handling : code Pin
Christian Graus25-Nov-08 19:54
protectorChristian Graus25-Nov-08 19:54 
GeneralRe: Exception handling : code Pin
HosamAly25-Nov-08 20:10
HosamAly25-Nov-08 20:10 
QuestionFacebook Question Pin
Dav Zen25-Nov-08 14:43
Dav Zen25-Nov-08 14:43 
AnswerRe: Facebook Question Pin
Christian Graus25-Nov-08 14:45
protectorChristian Graus25-Nov-08 14:45 
GeneralRe: Facebook Question Pin
Paul Conrad25-Nov-08 18:29
professionalPaul Conrad25-Nov-08 18:29 
GeneralRe: Facebook Question Pin
Christian Graus25-Nov-08 18:52
protectorChristian Graus25-Nov-08 18:52 
GeneralRe: Facebook Question Pin
Paul Conrad25-Nov-08 18:59
professionalPaul Conrad25-Nov-08 18:59 
Questionreader is closed how can i solve this Pin
cutedrew25-Nov-08 14:13
cutedrew25-Nov-08 14:13 
AnswerRe: reader is closed how can i solve this Pin
Christian Graus25-Nov-08 14:47
protectorChristian Graus25-Nov-08 14:47 
GeneralRe: reader is closed how can i solve this Pin
Paul Conrad25-Nov-08 18:30
professionalPaul Conrad25-Nov-08 18:30 
GeneralRe: reader is closed how can i solve this Pin
Christian Graus25-Nov-08 18:53
protectorChristian Graus25-Nov-08 18:53 

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.