示例#1
0

        
示例#2
0
文件: Array.cs 项目: Burnsedia/Work
        // IDisposable

        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            if (safeHandle != null)
            {
                safeHandle.Dispose();
                safeHandle = null;
            }

            disposed = true;
        }
示例#3
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (safeHandle != null)
            {
                safeHandle.Dispose();
                safeHandle = null;
            }

            disposed = true;
        }
示例#4
0
        // IDisposable

        /// <summary>
        /// Disposes of this <see cref="Array"/>.
        /// </summary>
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            if (_safeHandle != null)
            {
                _safeHandle.Dispose();
                _safeHandle = null;
            }

            _disposed = true;
        }
示例#5
0
文件: Array.cs 项目: Burnsedia/Work
 internal Array(IntPtr handle)
 {
     safeHandle = new ArraySafeHandle(handle);
 }
示例#6
0
文件: Array.cs 项目: Burnsedia/Work
 internal Array(ArraySafeHandle handle)
 {
     safeHandle = handle;
 }
示例#7
0
文件: Array.cs 项目: Burnsedia/Work
 public Array()
 {
     safeHandle = new ArraySafeHandle(godot_icall_Array_Ctor());
 }