コード例 #1
0
ファイル: GribFile.cs プロジェクト: lenwen/GribApi.NET
 /// <summary>
 /// Called when [dispose].
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected override void OnDispose(bool disposing)
 {
     if (_pFileHandleProxy != IntPtr.Zero)
     {
         GribApiNative.DestroyFileHandleProxy(_pFileHandleProxy);
     }
 }
コード例 #2
0
ファイル: GribFile.cs プロジェクト: CamelDev/GribApi.NET
        /// <summary>
        /// Called when [dispose].
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected override void OnDispose(bool disposing)
        {
            if (this._nearest != null)
            {
                this._nearest.Dispose();
            }

            if (_pFileHandleProxy != IntPtr.Zero)
            {
                GribApiNative.DestroyFileHandleProxy(_pFileHandleProxy);
            }
        }