Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CustomAttributeEncodedArgument.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
System.Reflection
;
5
6
[StructLayout(
LayoutKind
.Auto)]
7
internal
readonly
struct
CustomAttributeEncodedArgument
8
{
9
private
readonly
long
m_primitiveValue
;
10
11
private
readonly
CustomAttributeEncodedArgument
[]
m_arrayValue
;
12
13
private
readonly
string
m_stringValue
;
14
15
private
readonly
CustomAttributeType
m_type
;
16
17
public
CustomAttributeType
CustomAttributeType
=>
m_type
;
18
19
public
long
PrimitiveValue
=>
m_primitiveValue
;
20
21
public
CustomAttributeEncodedArgument
[]
ArrayValue
=>
m_arrayValue
;
22
23
public
string
StringValue
=>
m_stringValue
;
24
25
[MethodImpl(
MethodImplOptions
.InternalCall)]
26
private
static
extern
void
ParseAttributeArguments
(
IntPtr
pCa,
int
cCa, ref
CustomAttributeCtorParameter
[] CustomAttributeCtorParameters, ref
CustomAttributeNamedParameter
[]
CustomAttributeTypedArgument
,
RuntimeAssembly
assembly);
27
28
internal
static
void
ParseAttributeArguments
(
ConstArray
attributeBlob, ref
CustomAttributeCtorParameter
[] customAttributeCtorParameters, ref
CustomAttributeNamedParameter
[] customAttributeNamedParameters,
RuntimeModule
customAttributeModule)
29
{
30
if
((
object
)customAttributeModule ==
null
)
31
{
32
throw
new
ArgumentNullException
(
"customAttributeModule"
);
33
}
34
if
(customAttributeCtorParameters.Length != 0 || customAttributeNamedParameters.Length != 0)
35
{
36
ParseAttributeArguments
(attributeBlob.
Signature
, attributeBlob.
Length
, ref customAttributeCtorParameters, ref customAttributeNamedParameters, (
RuntimeAssembly
)customAttributeModule.
Assembly
);
37
}
38
}
39
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Reflection.RuntimeAssembly
Definition
RuntimeAssembly.cs:15
System.Reflection.RuntimeModule.Assembly
override Assembly Assembly
Definition
RuntimeModule.cs:70
System.Reflection.RuntimeModule
Definition
RuntimeModule.cs:11
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.Runtime.CompilerServices.MethodImplOptions
MethodImplOptions
Definition
MethodImplOptions.cs:5
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Runtime.InteropServices.LayoutKind
LayoutKind
Definition
LayoutKind.cs:4
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.IntPtr
Definition
IntPtr.cs:14
System.Reflection.ConstArray.Signature
IntPtr Signature
Definition
ConstArray.cs:9
System.Reflection.ConstArray.Length
int Length
Definition
ConstArray.cs:11
System.Reflection.ConstArray
Definition
ConstArray.cs:4
System.Reflection.CustomAttributeCtorParameter
Definition
CustomAttributeCtorParameter.cs:7
System.Reflection.CustomAttributeEncodedArgument.m_arrayValue
readonly CustomAttributeEncodedArgument[] m_arrayValue
Definition
CustomAttributeEncodedArgument.cs:11
System.Reflection.CustomAttributeEncodedArgument.StringValue
string StringValue
Definition
CustomAttributeEncodedArgument.cs:23
System.Reflection.CustomAttributeEncodedArgument.m_primitiveValue
readonly long m_primitiveValue
Definition
CustomAttributeEncodedArgument.cs:9
System.Reflection.CustomAttributeEncodedArgument.ParseAttributeArguments
static void ParseAttributeArguments(IntPtr pCa, int cCa, ref CustomAttributeCtorParameter[] CustomAttributeCtorParameters, ref CustomAttributeNamedParameter[] CustomAttributeTypedArgument, RuntimeAssembly assembly)
System.Reflection.CustomAttributeEncodedArgument.m_type
readonly CustomAttributeType m_type
Definition
CustomAttributeEncodedArgument.cs:15
System.Reflection.CustomAttributeEncodedArgument.PrimitiveValue
long PrimitiveValue
Definition
CustomAttributeEncodedArgument.cs:19
System.Reflection.CustomAttributeEncodedArgument.ParseAttributeArguments
static void ParseAttributeArguments(ConstArray attributeBlob, ref CustomAttributeCtorParameter[] customAttributeCtorParameters, ref CustomAttributeNamedParameter[] customAttributeNamedParameters, RuntimeModule customAttributeModule)
Definition
CustomAttributeEncodedArgument.cs:28
System.Reflection.CustomAttributeEncodedArgument.ArrayValue
CustomAttributeEncodedArgument[] ArrayValue
Definition
CustomAttributeEncodedArgument.cs:21
System.Reflection.CustomAttributeEncodedArgument.m_stringValue
readonly string m_stringValue
Definition
CustomAttributeEncodedArgument.cs:13
System.Reflection.CustomAttributeEncodedArgument
Definition
CustomAttributeEncodedArgument.cs:8
System.Reflection.CustomAttributeNamedParameter
Definition
CustomAttributeNamedParameter.cs:7
System.Reflection.CustomAttributeType
Definition
CustomAttributeType.cs:7
System.Reflection.CustomAttributeTypedArgument
Definition
CustomAttributeTypedArgument.cs:7
source
System.Private.CoreLib
System.Reflection
CustomAttributeEncodedArgument.cs
Generated by
1.10.0