Example #1
0
        public override IRealmCollection <T> Freeze()
        {
            if (IsFrozen)
            {
                return(this);
            }

            var frozenRealm  = Realm.Freeze();
            var frozenHandle = _listHandle.Freeze(frozenRealm.SharedRealmHandle);

            return(new RealmList <T>(frozenRealm, frozenHandle, Metadata));
        }
Example #2
0
        public override IRealmCollection <T> Freeze()
        {
            if (IsFrozen)
            {
                return(this);
            }

            var frozenRealm  = Realm.Freeze();
            var frozenHandle = ResultsHandle.Freeze(frozenRealm.SharedRealmHandle);

            return(new RealmResults <T>(frozenRealm, Metadata, frozenHandle));
        }