Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MarshalAsAttribute.cs
Go to the documentation of this file.
1
namespace
System.Runtime.InteropServices
;
2
3
[AttributeUsage(
AttributeTargets
.Field |
AttributeTargets
.Parameter |
AttributeTargets
.ReturnValue, Inherited =
false
)]
4
public
sealed
class
MarshalAsAttribute
:
Attribute
5
{
6
public
VarEnum
SafeArraySubType
;
7
8
public
Type
?
SafeArrayUserDefinedSubType
;
9
10
public
int
IidParameterIndex
;
11
12
public
UnmanagedType
ArraySubType
;
13
14
public
short
SizeParamIndex
;
15
16
public
int
SizeConst
;
17
18
public
string
?
MarshalType
;
19
20
public
Type
?
MarshalTypeRef
;
21
22
public
string
?
MarshalCookie
;
23
24
public
UnmanagedType
Value
{
get
; }
25
26
public
MarshalAsAttribute
(
UnmanagedType
unmanagedType)
27
{
28
Value
= unmanagedType;
29
}
30
31
public
MarshalAsAttribute
(
short
unmanagedType)
32
{
33
Value
= (
UnmanagedType
)unmanagedType;
34
}
35
}
System.Attribute
Definition
Attribute.cs:12
System.Runtime.InteropServices.MarshalAsAttribute.MarshalType
string? MarshalType
Definition
MarshalAsAttribute.cs:18
System.Runtime.InteropServices.MarshalAsAttribute.IidParameterIndex
int IidParameterIndex
Definition
MarshalAsAttribute.cs:10
System.Runtime.InteropServices.MarshalAsAttribute.SafeArraySubType
VarEnum SafeArraySubType
Definition
MarshalAsAttribute.cs:6
System.Runtime.InteropServices.MarshalAsAttribute.MarshalCookie
string? MarshalCookie
Definition
MarshalAsAttribute.cs:22
System.Runtime.InteropServices.MarshalAsAttribute.SizeParamIndex
short SizeParamIndex
Definition
MarshalAsAttribute.cs:14
System.Runtime.InteropServices.MarshalAsAttribute.SizeConst
int SizeConst
Definition
MarshalAsAttribute.cs:16
System.Runtime.InteropServices.MarshalAsAttribute.MarshalAsAttribute
MarshalAsAttribute(short unmanagedType)
Definition
MarshalAsAttribute.cs:31
System.Runtime.InteropServices.MarshalAsAttribute.MarshalTypeRef
Type? MarshalTypeRef
Definition
MarshalAsAttribute.cs:20
System.Runtime.InteropServices.MarshalAsAttribute.Value
UnmanagedType Value
Definition
MarshalAsAttribute.cs:24
System.Runtime.InteropServices.MarshalAsAttribute.MarshalAsAttribute
MarshalAsAttribute(UnmanagedType unmanagedType)
Definition
MarshalAsAttribute.cs:26
System.Runtime.InteropServices.MarshalAsAttribute.ArraySubType
UnmanagedType ArraySubType
Definition
MarshalAsAttribute.cs:12
System.Runtime.InteropServices.MarshalAsAttribute.SafeArrayUserDefinedSubType
Type? SafeArrayUserDefinedSubType
Definition
MarshalAsAttribute.cs:8
System.Runtime.InteropServices.MarshalAsAttribute
Definition
MarshalAsAttribute.cs:5
System.Type
Definition
Type.cs:14
System.Runtime.InteropServices.VarEnum
VarEnum
Definition
VarEnum.cs:4
System.Runtime.InteropServices.UnmanagedType
UnmanagedType
Definition
UnmanagedType.cs:4
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.Private.CoreLib
System.Runtime.InteropServices
MarshalAsAttribute.cs
Generated by
1.10.0