C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

What does assert() do in C#?

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.

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
What is a multicast delegate in C#?How do I get deterministic finalization in C#?