コード例 #1
0
            /// <inheritdoc/>
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                {
                    accessor?.Dispose();
                    accessor = null;
                    session.Dispose();
                    session = default;
                }

                base.Dispose(disposing);
            }
コード例 #2
0
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                {
                    accessor.SafeMemoryMappedViewHandle.ReleasePointer();
                    accessor.Dispose();
                    mappedFile.Dispose();
                    session.Dispose();
                    session = default;
                }

                ptr = default;
            }