🎴 Flashcard Mode

SQL Server and .NET Programming

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What does Debug.assert() do?

AnswerClick to flip back
A
takes Boolean condition as parameter and shows error dialog if condition is false; but proceeds without interruption if condition is true.
💡 Explanation:

Debug.Assert checks a condition and shows an error dialog only when the condition is false (indicating a failure). When the condition is true (normal case), execution continues uninterrupted. The dialog helps catch logic errors during development.

Change Mode