C# (Sharp) Programming Language Question:
What does assert() method do?
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 Question | Next Question |
What debugging tools come with the .NET SDK? | What is the difference between the Debug class and Trace class? |