昨天在调试程序的时候,跟踪不了,报以下错误:
调试器无法继续运行该进程 不支持操作!!!!!
经过排查,原来是代码里面出现了死循环。
DataTable mBllTableSchema;
protected DataTable BllTableSchema
{
get
{
if (this.mBllTableSchema == null)
{
mBllTableSchema = this.DBTableSchema;
bool bExist;
foreach (System.Reflection.PropertyInfo proItem in this.BllType.GetProperties())
{
bExist = false;
foreach (DataColumn column in
BllTableSchema.Columns)
{
if (proItem.Name.ToLower() == column.ColumnName.ToLower())
{
bExist = true; break; // TODO: might not be correct. Was : Exit For
}
}
if (!bExist)
{
mBllTableSchema.Columns.Add(proItem.Name, proItem.PropertyType);
}
}
}
return this.mBllTableSchema;
}
}