Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HandleRef.cs
Go to the documentation of this file.
1
namespace
System.Runtime.InteropServices
;
2
3
public
readonly
struct
HandleRef
4
{
5
private
readonly
object
_wrapper
;
6
7
private
readonly
IntPtr
_handle
;
8
9
public
object
?
Wrapper
=>
_wrapper
;
10
11
public
IntPtr
Handle
=>
_handle
;
12
13
public
HandleRef
(
object
? wrapper,
IntPtr
handle
)
14
{
15
_wrapper
= wrapper;
16
_handle
=
handle
;
17
}
18
19
public
static
explicit
operator
IntPtr
(
HandleRef
value
)
20
{
21
return
value
._handle;
22
}
23
24
public
static
IntPtr
ToIntPtr
(
HandleRef
value
)
25
{
26
return
value
._handle;
27
}
28
}
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.handle
@ handle
System.IntPtr
Definition
IntPtr.cs:14
System.Runtime.InteropServices.HandleRef.Handle
IntPtr Handle
Definition
HandleRef.cs:11
System.Runtime.InteropServices.HandleRef.Wrapper
object? Wrapper
Definition
HandleRef.cs:9
System.Runtime.InteropServices.HandleRef.HandleRef
HandleRef(object? wrapper, IntPtr handle)
Definition
HandleRef.cs:13
System.Runtime.InteropServices.HandleRef._handle
readonly IntPtr _handle
Definition
HandleRef.cs:7
System.Runtime.InteropServices.HandleRef.ToIntPtr
static IntPtr ToIntPtr(HandleRef value)
Definition
HandleRef.cs:24
System.Runtime.InteropServices.HandleRef._wrapper
readonly object _wrapper
Definition
HandleRef.cs:5
System.Runtime.InteropServices.HandleRef
Definition
HandleRef.cs:4
source
System.Private.CoreLib
System.Runtime.InteropServices
HandleRef.cs
Generated by
1.10.0