/// <summary> /// Determines whether the specified RealmConfiguration is equal to the current RealmConfiguration. /// </summary> /// <param name="rhs">The <see cref="System.Object"/> to compare with the current RealmConfiguration.</param> /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to the current /// <see cref="Realms.RealmConfiguration"/>; otherwise, <c>false</c>.</returns> public bool Equals(RealmConfiguration rhs) { if (rhs == null) { return(false); } if (GC.ReferenceEquals(this, rhs)) { return(true); } return(ShouldDeleteIfMigrationNeeded == rhs.ShouldDeleteIfMigrationNeeded && DatabasePath == rhs.DatabasePath && ((EncryptionKey == null && rhs.EncryptionKey == null) || EncryptionKey.SequenceEqual(rhs.EncryptionKey))); }