Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Save changes in Dataset back to my Database Pin
Matt T Heffron12-Mar-15 13:04
professionalMatt T Heffron12-Mar-15 13:04 
Questionactivex control Pin
Member 1149283311-Mar-15 16:20
Member 1149283311-Mar-15 16:20 
QuestionMessage Removed Pin
11-Mar-15 10:22
professionalN_tro_P11-Mar-15 10:22 
AnswerRe: EntityFramework Self referencing one to many Pin
Gerry Schmitz11-Mar-15 13:02
mveGerry Schmitz11-Mar-15 13:02 
GeneralMessage Removed Pin
12-Mar-15 2:38
professionalN_tro_P12-Mar-15 2:38 
GeneralRe: EntityFramework Self referencing one to many Pin
Gerry Schmitz12-Mar-15 3:28
mveGerry Schmitz12-Mar-15 3:28 
GeneralMessage Removed Pin
12-Mar-15 4:25
professionalN_tro_P12-Mar-15 4:25 
GeneralRe: EntityFramework Self referencing one to many Pin
Gerry Schmitz12-Mar-15 4:47
mveGerry Schmitz12-Mar-15 4:47 
GeneralMessage Removed Pin
12-Mar-15 5:04
professionalN_tro_P12-Mar-15 5:04 
GeneralRe: EntityFramework Self referencing one to many Pin
Gerry Schmitz12-Mar-15 5:43
mveGerry Schmitz12-Mar-15 5:43 
QuestionTrick IIS forms authentification Pin
jonas7811-Mar-15 4:14
jonas7811-Mar-15 4:14 
AnswerRe: Trick IIS forms authentification Pin
F-ES Sitecore11-Mar-15 4:39
professionalF-ES Sitecore11-Mar-15 4:39 
GeneralRe: Trick IIS forms authentification Pin
jonas7813-Mar-15 1:51
jonas7813-Mar-15 1:51 
QuestionUpdating Code For a Newer Version Pin
Member 997225111-Mar-15 2:52
Member 997225111-Mar-15 2:52 
SuggestionRe: Updating Code For a Newer Version Pin
Richard Deeming11-Mar-15 3:04
mveRichard Deeming11-Mar-15 3:04 
QuestionGood vs Bad Pin
NJdotnetdev11-Mar-15 2:30
NJdotnetdev11-Mar-15 2:30 
AnswerRe: Good vs Bad Pin
Pete O'Hanlon11-Mar-15 2:42
mvePete O'Hanlon11-Mar-15 2:42 
GeneralRe: Good vs Bad Pin
NJdotnetdev11-Mar-15 2:54
NJdotnetdev11-Mar-15 2:54 
GeneralRe: Good vs Bad Pin
OriginalGriff11-Mar-15 4:15
mveOriginalGriff11-Mar-15 4:15 
Leaving it blank is bad: it "swallows" the exception, so that nobody ever knows it has happened. So the underlying problem never gets fixed until it has reached massive proportions.

If you are going to add logging later, then re-throw the exception (so you know it occurred in development) and add a TODO to the code to remind you to fix it:
C#
catch(InvalidOperationException ex)
   {
   // TODO Log exception
   throw;
   }
Adding the TODO means it comes up in the Visual Studio Task List[^] automatically.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Good vs Bad Pin
NJdotnetdev11-Mar-15 4:19
NJdotnetdev11-Mar-15 4:19 
GeneralRe: Good vs Bad Pin
manchanx11-Mar-15 3:00
professionalmanchanx11-Mar-15 3:00 
AnswerRe: Good vs Bad Pin
Gerry Schmitz11-Mar-15 15:48
mveGerry Schmitz11-Mar-15 15:48 
AnswerRe: Good vs Bad Pin
deepankarbhatnagar12-Mar-15 0:52
professionaldeepankarbhatnagar12-Mar-15 0:52 
GeneralRe: Good vs Bad Pin
Richard MacCutchan12-Mar-15 1:06
mveRichard MacCutchan12-Mar-15 1:06 
GeneralRe: Good vs Bad Pin
Eddy Vluggen12-Mar-15 1:25
professionalEddy Vluggen12-Mar-15 1:25 

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.