Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Good vs Bad Pin
Subramanyam Shankar17-Mar-15 1:47
professionalSubramanyam Shankar17-Mar-15 1:47 
QuestionPublic Key Data Encryption Pin
benchambers23310-Mar-15 23:11
benchambers23310-Mar-15 23:11 
AnswerRe: Public Key Data Encryption Pin
OriginalGriff10-Mar-15 23:50
mveOriginalGriff10-Mar-15 23:50 
QuestionHow to Crop Pdf page and save as image in c# winforms ? Pin
User 952119410-Mar-15 22:05
User 952119410-Mar-15 22:05 
AnswerRe: How to Crop Pdf page and save as image in c# winforms ? Pin
Pete O'Hanlon10-Mar-15 22:08
mvePete O'Hanlon10-Mar-15 22:08 
Questionhow to new vertical form Pin
fsdsc210-Mar-15 14:54
fsdsc210-Mar-15 14:54 
AnswerRe: how to new vertical form Pin
BillWoodruff10-Mar-15 19:19
professionalBillWoodruff10-Mar-15 19:19 
GeneralRe: how to new vertical form Pin
fsdsc212-Mar-15 5:37
fsdsc212-Mar-15 5:37 
GeneralRe: how to new vertical form Pin
BillWoodruff12-Mar-15 18:32
professionalBillWoodruff12-Mar-15 18:32 
GeneralRe: how to new vertical form Pin
fsdsc213-Mar-15 4:56
fsdsc213-Mar-15 4:56 
Questiona problem Pin
Akbar Fardi10-Mar-15 11:29
Akbar Fardi10-Mar-15 11:29 

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.