You are debugging an application that calculates loan interest. The application includes the following code.
(Line numbers are included for reference only.)

You have the following requirements:
The debugger must break execution within the Calculatelnterest()method when the

loanAmountvariable is less than or equal to zero.
The release version of the code must not be impacted by any changes.

You need to meet the requirements.
What should you do?
正解:C
Explanation/Reference:
Explanation:
By default, the Debug.Assert method works only in debug builds. Use the Trace.Assert method if you want to do assertions in release builds. For more information, see Assertions in Managed Code.
References: http://msdn.microsoft.com/en-us/library/kssw4w7z.aspx