support for .NET framework 3.5

Still have bugs
This commit is contained in:
NaBian committed 2019-01-21 00:43:10 +08:00
1 parent 5878039e21
commit 7d6b491f25
704 files changed
+48273 -33

No files matched your search

@@ -0,0 +1,20 @@
namespace Standard
{
using Microsoft.Win32.SafeHandles;
using System;
using System.Security.Permissions;
internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid
{
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)]
private SafeFindHandle() : base(true)
{
}
protected override bool ReleaseHandle()
{
return Standard.NativeMethods.FindClose(base.handle);
}
}
}