assert(string msg)

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

Why isn't there an overload of System.Diagnostics.Debug.Assert that accepts
only a string as message.

I often have to call Assert(false, "message"); because if the code reaches
the place of the assert you know that something is gone seriously wrong. An
Assert with only a string argument would make the intend much clearer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top