1 // Copyright 2016 by Samsung Electronics, Inc.,
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
10 using System.Runtime.InteropServices;
12 internal static partial class Interop
14 internal abstract class TizenSafeHandle : SafeHandle
16 public abstract void Destroy();
18 public TizenSafeHandle() : base(IntPtr.Zero, true)
22 public TizenSafeHandle(IntPtr handle) : base(handle, true)
26 public override bool IsInvalid
30 return handle == IntPtr.Zero;
34 protected override bool ReleaseHandle()
37 SetHandle(IntPtr.Zero);