Click here to Skip to main content
14,238,683 members

.NET Framework

 
AnswerRe: Mocking a Service call in my Unit Tests Pin
Gerry Schmitz8-Feb-19 10:46
mveGerry Schmitz8-Feb-19 10:46 
GeneralRe: Mocking a Service call in my Unit Tests Pin
simpledeveloper8-Feb-19 10:59
membersimpledeveloper8-Feb-19 10:59 
GeneralRe: Mocking a Service call in my Unit Tests Pin
simpledeveloper11-Feb-19 8:29
membersimpledeveloper11-Feb-19 8:29 
GeneralRe: Mocking a Service call in my Unit Tests Pin
Gerry Schmitz13-Feb-19 5:40
mveGerry Schmitz13-Feb-19 5:40 
QuestionNot able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper4-Feb-19 12:25
membersimpledeveloper4-Feb-19 12:25 
AnswerRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Dave Kreskowiak4-Feb-19 14:04
mveDave Kreskowiak4-Feb-19 14:04 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper8-Feb-19 7:15
membersimpledeveloper8-Feb-19 7:15 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Dave Kreskowiak8-Feb-19 8:49
mveDave Kreskowiak8-Feb-19 8:49 
The Exception class doesn't have a Details property, so you're code can't see it. You're basically casting the exception object back up to the root Exception class, stripping all the properties that don't exist in the Exception class.

If you want to catch a specific type of exception, you have to put that type in the catch statement:
try
{
}
catch (SomeSpecificExceptionClass ex)



The QuickWatch window uses the actual type of the class to fill in all available properties. That's why you see it in QuickWatch but the code can't.

GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper8-Feb-19 9:44
membersimpledeveloper8-Feb-19 9:44 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Pete O'Hanlon8-Feb-19 10:37
protectorPete O'Hanlon8-Feb-19 10:37 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Dave Kreskowiak8-Feb-19 10:44
mveDave Kreskowiak8-Feb-19 10:44 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper8-Feb-19 10:52
membersimpledeveloper8-Feb-19 10:52 
AnswerRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Richard MacCutchan4-Feb-19 22:05
protectorRichard MacCutchan4-Feb-19 22:05 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper8-Feb-19 7:51
membersimpledeveloper8-Feb-19 7:51 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
Richard MacCutchan8-Feb-19 22:22
protectorRichard MacCutchan8-Feb-19 22:22 
GeneralRe: Not able to read the Detail property of Exception, when it is shown in the Quick Watch Pin
simpledeveloper11-Feb-19 6:59
membersimpledeveloper11-Feb-19 6:59 
QuestionBindingSource Implementation in .net Win Forms Pin
rjto2-Jan-19 5:01
memberrjto2-Jan-19 5:01 
AnswerRe: BindingSource Implementation in .net Win Forms Pin
Pete O'Hanlon2-Jan-19 5:27
protectorPete O'Hanlon2-Jan-19 5:27 
GeneralRe: BindingSource Implementation in .net Win Forms Pin
rjto2-Jan-19 5:36
memberrjto2-Jan-19 5:36 
GeneralRe: BindingSource Implementation in .net Win Forms Pin
mtoha16-Jan-19 16:19
professionalmtoha16-Jan-19 16:19 
GeneralRe: BindingSource Implementation in .net Win Forms Pin
Pete O'Hanlon16-Jan-19 20:59
protectorPete O'Hanlon16-Jan-19 20:59 
GeneralRe: BindingSource Implementation in .net Win Forms Pin
mtoha16-Jan-19 21:02
professionalmtoha16-Jan-19 21:02 
QuestionDuplicate confirm save prompt when using SaveFileDialog Pin
manic_drummer1-Jan-19 12:39
membermanic_drummer1-Jan-19 12:39 
AnswerRe: Duplicate confirm save prompt when using SaveFileDialog Pin
Dave Kreskowiak1-Jan-19 14:22
mveDave Kreskowiak1-Jan-19 14:22 
QuestionVB.net Chained Combo Boxes in Entity framework Pin
Member 1205292129-Dec-18 0:53
memberMember 1205292129-Dec-18 0: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.