Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeTypeNameParserHandle.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices
;
2
using
Microsoft.Win32.SafeHandles
;
3
4
namespace
System
;
5
6
internal
sealed
class
SafeTypeNameParserHandle
:
SafeHandleZeroOrMinusOneIsInvalid
7
{
8
[DllImport(
"QCall"
,
CharSet
=
CharSet
.Unicode)]
9
private
static
extern
void
_ReleaseTypeNameParser
(
IntPtr
pTypeNameParser);
10
11
public
SafeTypeNameParserHandle
()
12
: base(ownsHandle: true)
13
{
14
}
15
16
protected
override
bool
ReleaseHandle
()
17
{
18
_ReleaseTypeNameParser
(
handle
);
19
handle
=
IntPtr
.
Zero
;
20
return
true
;
21
}
22
}
Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Definition
SafeHandleZeroOrMinusOneIsInvalid.cs:7
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:8
System.SafeTypeNameParserHandle._ReleaseTypeNameParser
static void _ReleaseTypeNameParser(IntPtr pTypeNameParser)
System.SafeTypeNameParserHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafeTypeNameParserHandle.cs:16
System.SafeTypeNameParserHandle.SafeTypeNameParserHandle
SafeTypeNameParserHandle()
Definition
SafeTypeNameParserHandle.cs:11
System.SafeTypeNameParserHandle
Definition
SafeTypeNameParserHandle.cs:7
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
System.Runtime.InteropServices.CharSet
CharSet
Definition
CharSet.cs:4
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System
Definition
BlockingCollection.cs:8
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
source
System.Private.CoreLib
System
SafeTypeNameParserHandle.cs
Generated by
1.10.0