Realm Xamarin  v0.75.0
Realm for Xamarin
Public Member Functions | Public Attributes | List of all members
RealmObject Class Reference

Base for any object that can be persisted in a Realm. More...

Collaboration diagram for RealmObject:
Collaboration graph
[legend]

Public Member Functions

override bool Equals (object obj)
 Compare objects with identity query for persistent objects. More...
 

Public Attributes

bool IsManaged => _realm != null
 Allows you to check if the object has been associated with a Realm, either at creation or via Realm.Manage. More...
 

Detailed Description

Base for any object that can be persisted in a Realm.

Member Function Documentation

override bool Equals ( object  obj)

Compare objects with identity query for persistent objects.

Persisted RealmObjects map their properties directly to the realm with no caching so multiple instances of a given object always refer to the same store.

Parameters
obj
Returns
True when objects are the same memory object or refer to the same persisted object.

Member Data Documentation

bool IsManaged => _realm != null

Allows you to check if the object has been associated with a Realm, either at creation or via Realm.Manage.