Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
AnswerRe: datagridview cell type Pin
Dave Kreskowiak4-Jan-11 6:40
mveDave Kreskowiak4-Jan-11 6:40 
GeneralRe: datagridview cell type Pin
csrss4-Jan-11 7:02
csrss4-Jan-11 7:02 
AnswerRe: datagridview cell type Pin
Luc Pattyn4-Jan-11 7:01
sitebuilderLuc Pattyn4-Jan-11 7:01 
GeneralRe: datagridview cell type Pin
csrss4-Jan-11 7:04
csrss4-Jan-11 7:04 
QuestionDebug.Trace - wish it to act like ASSERT in MFC Pin
bob169724-Jan-11 6:05
bob169724-Jan-11 6:05 
AnswerRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
Dave Kreskowiak4-Jan-11 6:36
mveDave Kreskowiak4-Jan-11 6:36 
GeneralRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
bob169724-Jan-11 6:42
bob169724-Jan-11 6:42 
AnswerRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
Rob Philpott4-Jan-11 6:46
Rob Philpott4-Jan-11 6:46 
That's a good question. It doesn't seem to be a standard practice in .NET unlike in C++, or not that I've seen anyway, and I think that's probably to do with the difference between debug and release not being as clear cut in .NET than in C++. Not even sure if conditional compilation exists.

As suggested you can Debugger.Break, but that's ugly, and if you were to wrap it up in a little function then it would break in that rather than where you want (unless you could inline it out somehow??) The other alternative is just don't do it, just do the check and throw an exception if the check fails - that's more what you see - people tend not to assert the arguments to a function are correct, but throw an ArgumentException instead if they're wrong as an example.
Regards,
Rob Philpott.

GeneralRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
bob169724-Jan-11 7:10
bob169724-Jan-11 7:10 
GeneralRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
jschell4-Jan-11 8:07
jschell4-Jan-11 8:07 
AnswerRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
#realJSOP4-Jan-11 6:47
professional#realJSOP4-Jan-11 6:47 
GeneralRe: Debug.Trace - wish it to act like ASSERT in MFC Pin
bob169724-Jan-11 7:01
bob169724-Jan-11 7:01 
QuestionDrawlines on different levels Pin
AlexB474-Jan-11 6:04
AlexB474-Jan-11 6:04 
AnswerRe: Drawlines on different levels Pin
Luc Pattyn4-Jan-11 6:21
sitebuilderLuc Pattyn4-Jan-11 6:21 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:56
AlexB474-Jan-11 13:56 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 15:23
AlexB474-Jan-11 15:23 
GeneralRe: Drawlines on different levels Pin
Luc Pattyn4-Jan-11 15:25
sitebuilderLuc Pattyn4-Jan-11 15:25 
AnswerRe: Drawlines on different levels Pin
Dave Kreskowiak4-Jan-11 6:27
mveDave Kreskowiak4-Jan-11 6:27 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:57
AlexB474-Jan-11 13:57 
AnswerRe: Drawlines on different levels [Edit] Pin
Paladin20004-Jan-11 9:44
Paladin20004-Jan-11 9:44 
GeneralRe: Drawlines on different levels Pin
Dave Kreskowiak4-Jan-11 10:24
mveDave Kreskowiak4-Jan-11 10:24 
GeneralRe: Drawlines on different levels Pin
Paladin20004-Jan-11 10:51
Paladin20004-Jan-11 10:51 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:58
AlexB474-Jan-11 13:58 
Questionhelp with realization Pin
polycom1234-Jan-11 4:54
polycom1234-Jan-11 4:54 
AnswerRe: help with realization Pin
Luc Pattyn4-Jan-11 5:00
sitebuilderLuc Pattyn4-Jan-11 5:00 

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.