Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Indexed access support to RealmResults #736

Closed
AndyDentFree opened this issue Jul 27, 2016 · 2 comments
Closed

Add Indexed access support to RealmResults #736

AndyDentFree opened this issue Jul 27, 2016 · 2 comments

Comments

@AndyDentFree
Copy link
Contributor

AndyDentFree commented Jul 27, 2016

From the SO questionRealm dotnet: get element by index from RealmResults we need a way to provide indexed access.

After some discussion, we will first add the LINQ ElementAt as seen in LINQ source and see if that satisfies the OP's needs.

@AndyDentFree
Copy link
Contributor Author

Expressions like this in SimpleLINQtests.CreateList should work without the ToList

 var s0 = _realm.All<Person>().Where(p => p.Score == 42.42f),ToList();
 Assert.That(s0 [0].Score, Is.EqualTo(42.42f));

@kristiandupont
Copy link
Contributor

This was resolved with #802.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants