publicstaticvoid CheckCondition(bool condition, String errorText, int lineNumber)
{
//Test the condition if ( !condition )
{
//Assert and throw if the condition is not met String detailMessage;
GenerateStackTrace(lineNumber, out detailMessage);
Debug.Fail(errorText, detailMessage);
thrownew ApplicationException(errorText);
} }
posted on
2004-12-22 16:03- -
阅读(920)
评论(0)
编辑收藏举报