//////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2007-2020 , Inc. All Rights Reserved. // //////////////////////////////////////////////////////////////////////////////// using System; namespace GCSeries.Core.Sdk { public class ZNativeResource : IDisposable { public ZNativeResource() { } public ZNativeResource(IntPtr nativePtr) { this._nativePtr = nativePtr; } //////////////////////////////////////////////////////////////////////// // Public Properties //////////////////////////////////////////////////////////////////////// /// /// The native pointer of the resource. /// public IntPtr NativePtr => this._nativePtr; //////////////////////////////////////////////////////////////////////// // Public Methods //////////////////////////////////////////////////////////////////////// public void Dispose() { this.Dispose(true); GC.SuppressFinalize(this); } //////////////////////////////////////////////////////////////////////// // Protected Methods //////////////////////////////////////////////////////////////////////// protected virtual void Dispose(bool disposing) { } //////////////////////////////////////////////////////////////////////// // Protected Members //////////////////////////////////////////////////////////////////////// protected IntPtr _nativePtr = IntPtr.Zero; } }