Assert

  • Thread starter Thread starter Andrew McLellan
  • Start date Start date
A

Andrew McLellan

Just migrating to C#. Is there really no Assert or equivalent thereof?

And if there isn't, am I right in assuming there's a good reason why not?

Andrew
 
"Is there really no Assert or equivalent thereof? " No,

I remember using assert when creating linked lists to check that memory
was still available to create another node. Assert in C# does not do
this. Instead it checks a condition and outputs a message. Its no
even compiled when running a Release version.

http://msdn.microsoft.com/library/d...lrfsystemdiagnosticstraceclassasserttopic.asp

http://codebetter.com/blogs/sahil.malik/archive/2005/01/19/45944.aspx

"And if there isn't, am I right in assuming there's a good reason why
not? "

I do not know
 
Back
Top