foreach(string s in allStrings) { try { //Error happens here } catch(Exception ex) { //Handle exception break; } finally { //Clean up code } }
继续写.