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.
 
Back
Top