/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"> /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. /// </param> protected override void Dispose(bool disposing) { if (!disposed) { try { if (IsEnabledDispose) { NativeMethods.vector_Point2f_delete(ptr); } disposed = true; } finally { base.Dispose(disposing); } } }
/// <summary> /// Releases unmanaged resources /// </summary> protected override void DisposeUnmanaged() { NativeMethods.vector_Point2f_delete(ptr); base.DisposeUnmanaged(); }