Binarysharp.MemoryManagement.Memory.MemoryProtection.Dispose C# (CSharp) Method

Dispose() public method

Restores the initial protection of the memory.
public Dispose ( ) : void
return void
        public virtual void Dispose()
        {
            // Restore the memory protection
            MemoryCore.ChangeProtection(_memorySharp.Handle, BaseAddress, Size, OldProtection);
            // Avoid the finalizer
            GC.SuppressFinalize(this);
        }