Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TypeToTypeInfoMarshaler.cs
Go to the documentation of this file.
1
namespace
System.Runtime.InteropServices.CustomMarshalers
;
2
3
internal
sealed
class
TypeToTypeInfoMarshaler
:
ICustomMarshaler
4
{
5
private
static
readonly
TypeToTypeInfoMarshaler
s_typeToTypeInfoMarshaler
=
new
TypeToTypeInfoMarshaler
();
6
7
public
static
ICustomMarshaler
GetInstance
(
string
cookie)
8
{
9
return
s_typeToTypeInfoMarshaler
;
10
}
11
12
private
TypeToTypeInfoMarshaler
()
13
{
14
}
15
16
public
void
CleanUpManagedData
(
object
ManagedObj)
17
{
18
}
19
20
public
void
CleanUpNativeData
(
IntPtr
pNativeData)
21
{
22
}
23
24
public
int
GetNativeDataSize
()
25
{
26
return
-1;
27
}
28
29
public
IntPtr
MarshalManagedToNative
(
object
ManagedObj)
30
{
31
throw
new
PlatformNotSupportedException
(
SR
.
PlatformNotSupported_ITypeInfo
);
32
}
33
34
public
object
MarshalNativeToManaged
(
IntPtr
pNativeData)
35
{
36
throw
new
PlatformNotSupportedException
(
SR
.
PlatformNotSupported_ITypeInfo
);
37
}
38
}
System.PlatformNotSupportedException
Definition
PlatformNotSupportedException.cs:9
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.TypeToTypeInfoMarshaler
TypeToTypeInfoMarshaler()
Definition
TypeToTypeInfoMarshaler.cs:12
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.GetNativeDataSize
int GetNativeDataSize()
Definition
TypeToTypeInfoMarshaler.cs:24
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.GetInstance
static ICustomMarshaler GetInstance(string cookie)
Definition
TypeToTypeInfoMarshaler.cs:7
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.s_typeToTypeInfoMarshaler
static readonly TypeToTypeInfoMarshaler s_typeToTypeInfoMarshaler
Definition
TypeToTypeInfoMarshaler.cs:5
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.MarshalManagedToNative
IntPtr MarshalManagedToNative(object ManagedObj)
Definition
TypeToTypeInfoMarshaler.cs:29
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.CleanUpNativeData
void CleanUpNativeData(IntPtr pNativeData)
Definition
TypeToTypeInfoMarshaler.cs:20
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.MarshalNativeToManaged
object MarshalNativeToManaged(IntPtr pNativeData)
Definition
TypeToTypeInfoMarshaler.cs:34
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler.CleanUpManagedData
void CleanUpManagedData(object ManagedObj)
Definition
TypeToTypeInfoMarshaler.cs:16
System.Runtime.InteropServices.CustomMarshalers.TypeToTypeInfoMarshaler
Definition
TypeToTypeInfoMarshaler.cs:4
System.SR.PlatformNotSupported_ITypeInfo
static string PlatformNotSupported_ITypeInfo
Definition
SR.cs:1800
System.SR
Definition
SR.cs:7
System.Runtime.InteropServices.ICustomMarshaler
Definition
ICustomMarshaler.cs:4
System.Runtime.InteropServices.CustomMarshalers
Definition
ComDataHelpers.cs:3
System.IntPtr
Definition
IntPtr.cs:14
source
System.Private.CoreLib
System.Runtime.InteropServices.CustomMarshalers
TypeToTypeInfoMarshaler.cs
Generated by
1.10.0