
What is the purpose of assert() in C# (C Sharp)?While developing
an application, there are high probabilities for logical errors to occur.
During development phase, you can trap those errors using assert method. namespace
Application1 { Execute this
program and enter the number as 0. Now the condition sampleNum>0 will
fail. Hence you will get the following assertion failure message:
_______________________________________________________________________
FREE
Subscription
Subscribe
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________ |