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