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(); } }
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(); } }
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(); } }