LockAndUndbindList() private method

private LockAndUndbindList ( ) : void
return void
 public RealmHandle(RealmHandle root) : base(IntPtr.Zero, true)
 {
     if (root == null) // if we are a root object, we need a list for our children and Root is already null
     {
         _unbindList = GetUnbindList();
     }
     else
     {
         Root = root;
         root.LockAndUndbindList();
     }
 }
示例#2
0
        protected RealmHandle(RealmHandle root, IntPtr handle) : base(IntPtr.Zero, true)
        {
            SetHandle(handle);

            // We can only have a single root
            root = root?.Root ?? root;
            if (root == null) // if we are a root object, we need a list for our children and Root is already null
            {
                _unbindList = GetUnbindList();
            }
            else
            {
                Root = root;
                root.LockAndUndbindList();
            }
        }
示例#3
0
 internal RealmHandle(RealmHandle root) : base(true)
 {
     if (root == null) // if we are a root object, we need a list for our children and Root is already null
     {
         _unbindList = GetUnbindList();
     }
     else
     {
         Root = root;
         root.LockAndUndbindList();
     }
 }