Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DispatchWrapper.cs
Go to the documentation of this file.
1
using
System.Runtime.Versioning
;
2
3
namespace
System.Runtime.InteropServices
;
4
5
[SupportedOSPlatform(
"windows"
)]
6
public
sealed
class
DispatchWrapper
7
{
8
public
object
?
WrappedObject
{
get
; }
9
10
public
DispatchWrapper
(
object
?
obj
)
11
{
12
if
(
obj
!=
null
)
13
{
14
IntPtr
iDispatchForObject =
Marshal
.
GetIDispatchForObject
(
obj
);
15
Marshal
.
Release
(iDispatchForObject);
16
WrappedObject
=
obj
;
17
}
18
}
19
}
System.Runtime.InteropServices.DispatchWrapper.DispatchWrapper
DispatchWrapper(object? obj)
Definition
DispatchWrapper.cs:10
System.Runtime.InteropServices.DispatchWrapper.WrappedObject
object? WrappedObject
Definition
DispatchWrapper.cs:8
System.Runtime.InteropServices.DispatchWrapper
Definition
DispatchWrapper.cs:7
System.Runtime.InteropServices.Marshal.GetIDispatchForObject
static IntPtr GetIDispatchForObject(object o)
Definition
Marshal.cs:244
System.Runtime.InteropServices.Marshal.Release
static unsafe int Release(IntPtr pUnk)
Definition
Marshal.cs:766
System.Runtime.InteropServices.Marshal
Definition
Marshal.cs:14
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.Runtime.Versioning
Definition
NonVersionableAttribute.cs:1
System.ExceptionArgument.obj
@ obj
System.IntPtr
Definition
IntPtr.cs:14
source
System.Private.CoreLib
System.Runtime.InteropServices
DispatchWrapper.cs
Generated by
1.10.0