コード例 #1
0
 // Token: 0x06008E0D RID: 36365 RVA: 0x0025B110 File Offset: 0x00259310
 public AutoLocker(LockHelper helper, LockHelper.LockFlag flag)
 {
     if (helper == null)
     {
         throw new ArgumentNullException("helper");
     }
     this._helper = helper;
     this._flag   = flag;
     this._helper.Lock(this._flag);
 }
コード例 #2
0
            public AutoLocker(LockHelper helper, LockFlag flag)
            {
                if (helper == null)
                {
                    throw new ArgumentNullException("helper");
                }

                Debug.Assert(!helper.IsLocked(flag));
                _helper = helper;
                _flag   = flag;

                // Lock the locker at the object's creation time.
                _helper.Lock(_flag);
            }
コード例 #3
0
            public AutoLocker(LockHelper helper, LockFlag flag) 
            { 
                if(helper == null)
                { 
                    throw new ArgumentNullException("helper");
                }

                Debug.Assert(!helper.IsLocked(flag)); 
                _helper = helper;
                _flag = flag; 
 
                // Lock the locker at the object's creation time.
                _helper.Lock(_flag); 
            }