C# (Sharp) Programming Language Question:

What does assert() method do?

Tweet Share WhatsApp

Answer:

In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.

Download C# (Sharp) Programming Language PDF Read All 163 C# (Sharp) Programming Language Questions
Previous QuestionNext Question
What debugging tools come with the .NET SDK?What is the difference between the Debug class and Trace class?