Realms.Transaction.Commit C# (CSharp) Method

Commit() public method

Use to save the changes to the realm. If Transaction is declared in a using block, must be used before the end of that block.
public Commit ( ) : void
return void
        public void Commit()
        {
            if (!_isOpen)
            {
                throw new Exception("Transaction was already closed. Cannot commit");
            }

            _realm.SharedRealmHandle.CommitTransaction();
            _isOpen = false;
        }
    }