Tag Archives: Debug.Assert

Use Debug.Assert to find bugs in C#

The Debug class provides several methods for use in debugging code. Its Assert method takes a boolean value and throws an exception if the value is false. A second parameter gives the error message that the exception should display. If … Continue reading

Posted in debugging | Tagged , , , , , , , , | 2 Comments