IsSameInstance() public méthode

public IsSameInstance ( SharedRealmHandle other ) : bool
other SharedRealmHandle
Résultat bool
Exemple #1
0
 /// <summary>
 /// Determines whether this instance is the same core instance as the specified rhs.
 /// </summary>
 /// <remarks>
 /// You can, and should, have multiple instances open on different threads which have the same path and open the same Realm.
 /// </remarks>
 /// <returns><c>true</c> if this instance is the same core instance the specified rhs; otherwise, <c>false</c>.</returns>
 /// <param name="rhs">The Realm to compare with the current Realm.</param>
 public bool IsSameInstance(Realm rhs)
 {
     return(SharedRealmHandle.IsSameInstance(rhs.SharedRealmHandle));
 }
Exemple #2
0
 /// <summary>
 /// Determines whether this instance is the same core instance as the passed in argument.
 /// </summary>
 /// <remarks>
 /// You can, and should, have multiple instances open on different threads which have the same path and open the same Realm.
 /// </remarks>
 /// <returns><c>true</c> if this instance is the same core instance; otherwise, <c>false</c>.</returns>
 /// <param name="other">The Realm to compare with the current Realm.</param>
 public bool IsSameInstance(Realm other)
 {
     return(SharedRealmHandle.IsSameInstance(other.SharedRealmHandle));
 }