Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CustomAttributeEncodedArgument.cs
Go to the documentation of this file.
3
4namespace System.Reflection;
5
6[StructLayout(LayoutKind.Auto)]
7internal readonly struct CustomAttributeEncodedArgument
8{
9 private readonly long m_primitiveValue;
10
12
13 private readonly string m_stringValue;
14
15 private readonly CustomAttributeType m_type;
16
18
20
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}
readonly CustomAttributeEncodedArgument[] m_arrayValue
static void ParseAttributeArguments(IntPtr pCa, int cCa, ref CustomAttributeCtorParameter[] CustomAttributeCtorParameters, ref CustomAttributeNamedParameter[] CustomAttributeTypedArgument, RuntimeAssembly assembly)
static void ParseAttributeArguments(ConstArray attributeBlob, ref CustomAttributeCtorParameter[] customAttributeCtorParameters, ref CustomAttributeNamedParameter[] customAttributeNamedParameters, RuntimeModule customAttributeModule)