Realm Xamarin  v0.74.1
Realm for Xamarin
Public Member Functions | List of all members
RealmResults< T > Class Template Reference

Iterable, sortable collection of one kind of RealmObject resulting from Realm.All() or from a LINQ query expression. More...

Inherits IOrderedQueryable< T >, INotifyCollectionChanged, and RealmResultsNativeHelper.Interface.

Public Member Functions

int Count ()
 Fast count all objects of a given class. More...
 
IEnumerator< T > GetEnumerator ()
 Standard method from interface IEnumerable allows the RealmResults to be used in a foreach or ToList(). More...
 

Detailed Description

Iterable, sortable collection of one kind of RealmObject resulting from Realm.All() or from a LINQ query expression.

Implements IOrderedQueryable.
You can sort efficiently using the standard LINQ operators OrderBy or OrderByDescending followed by any number of ThenBy or ThenByDescending.

Template Parameters
TType of the RealmObject which is being returned.

Member Function Documentation

int Count ( )

Fast count all objects of a given class.

Resolves to this method instead of the LINQ static extension Count<T>(this IEnumerable<T>), when used directly on Realm.All.

IEnumerator<T> GetEnumerator ( )

Standard method from interface IEnumerable allows the RealmResults to be used in a foreach or ToList().

Returns
An IEnumerator which will iterate through found Realm persistent objects.