Пример #1
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

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

            disposed = true;
        }
Пример #2
0
        /// <summary>
        /// Disposes of this <see cref="Dictionary"/>.
        /// </summary>
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

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

            _disposed = true;
        }
Пример #3
0
 internal Dictionary(IntPtr handle)
 {
     safeHandle = new DictionarySafeHandle(handle);
 }
Пример #4
0
 internal Dictionary(DictionarySafeHandle handle)
 {
     safeHandle = handle;
 }
Пример #5
0
 public Dictionary()
 {
     safeHandle = new DictionarySafeHandle(godot_icall_Dictionary_Ctor());
 }