C# (Sharp) Programming Language Question:

What does assert() method do?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

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.


Previous QuestionNext Question
What debugging tools come with the .NET SDK?What is the difference between the Debug class and Trace class?