回忆一下,lock(obj){body}实践上就是上面代码的语法:[quote]vartemp=obj; Monitor.Enter(temp); try{body} finally{Monitor.Exit(temp);}