checkpoint
This commit is contained in:
@@ -4,13 +4,9 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace Foodsoft.Alpm
|
||||
{
|
||||
internal class SafePackageHandle : SafeHandle
|
||||
internal abstract class SafePackageHandle : SafeHandle
|
||||
{
|
||||
protected SafePackageHandle() : base(IntPtr.Zero, true) { }
|
||||
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail), PrePrepareMethod]
|
||||
protected override bool ReleaseHandle() => alpm.alpm_pkg_free(handle) == 0;
|
||||
|
||||
public override bool IsInvalid
|
||||
{
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success), PrePrepareMethod]
|
||||
|
||||
Reference in New Issue
Block a user