Exemplo n.º 1
0
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.disposed = true;

                if (IntPtr.Size == 8)
                {
                    DdsIO_x64.FreeLoadInfo(ref this.info);
                }
                else
                {
                    DdsIO_x86.FreeLoadInfo(ref this.info);
                }
            }
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.disposed = true;

#if NET47
                if (IntPtr.Size == 8)
#else
                if (RuntimeInformation.ProcessArchitecture == Architecture.X64)
#endif
                {
                    DdsIO_x64.FreeLoadInfo(ref this.info);
                }
#if NET47
                else if (IntPtr.Size == 4)
#else
                else if (RuntimeInformation.ProcessArchitecture == Architecture.X86)
#endif
                {
                    DdsIO_x86.FreeLoadInfo(ref this.info);
                }
            }
        }