// IDisposable public void Dispose() { if (disposed) { return; } if (safeHandle != null) { safeHandle.Dispose(); safeHandle = null; } disposed = true; }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (safeHandle != null) { safeHandle.Dispose(); safeHandle = null; } disposed = true; }
// IDisposable /// <summary> /// Disposes of this <see cref="Array"/>. /// </summary> public void Dispose() { if (_disposed) { return; } if (_safeHandle != null) { _safeHandle.Dispose(); _safeHandle = null; } _disposed = true; }
internal Array(IntPtr handle) { safeHandle = new ArraySafeHandle(handle); }
internal Array(ArraySafeHandle handle) { safeHandle = handle; }
public Array() { safeHandle = new ArraySafeHandle(godot_icall_Array_Ctor()); }