111,095
社区成员




public class xxx{
private object a;
public object A{get{return a;}set{lock (a){// 对a进行操作}}}
}
[NonSerialized]
private object _syncRoot;
[__DynamicallyInvokable]
object ICollection.SyncRoot
{
[__DynamicallyInvokable] get
{
if (this._syncRoot == null)
Interlocked.CompareExchange<object>(ref this._syncRoot, new object(), (object) null);
return this._syncRoot;
}
}
不知道你说public的结论怎么来的