Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Init() [1/5]

void System.Reflection.RuntimeCustomAttributeData.Init ( DllImportAttribute dllImport)
inlineprivate

Definition at line 375 of file RuntimeCustomAttributeData.cs.

376 {
378 m_ctor = typeFromHandle.GetConstructors(BindingFlags.Instance | BindingFlags.Public)[0];
379 m_typedCtorArgs = Array.AsReadOnly(new CustomAttributeTypedArgument[1]
380 {
381 new CustomAttributeTypedArgument(dllImport.Value)
382 });
383 m_namedArgs = Array.AsReadOnly(new CustomAttributeNamedArgument[8]
384 {
385 new CustomAttributeNamedArgument(typeFromHandle.GetField("EntryPoint"), dllImport.EntryPoint),
386 new CustomAttributeNamedArgument(typeFromHandle.GetField("CharSet"), dllImport.CharSet),
387 new CustomAttributeNamedArgument(typeFromHandle.GetField("ExactSpelling"), dllImport.ExactSpelling),
388 new CustomAttributeNamedArgument(typeFromHandle.GetField("SetLastError"), dllImport.SetLastError),
389 new CustomAttributeNamedArgument(typeFromHandle.GetField("PreserveSig"), dllImport.PreserveSig),
390 new CustomAttributeNamedArgument(typeFromHandle.GetField("CallingConvention"), dllImport.CallingConvention),
391 new CustomAttributeNamedArgument(typeFromHandle.GetField("BestFitMapping"), dllImport.BestFitMapping),
392 new CustomAttributeNamedArgument(typeFromHandle.GetField("ThrowOnUnmappableChar"), dllImport.ThrowOnUnmappableChar)
393 });
394 }
IList< CustomAttributeTypedArgument > m_typedCtorArgs
IList< CustomAttributeNamedArgument > m_namedArgs

References System.Reflection.RuntimeCustomAttributeData.m_ctor, System.Reflection.RuntimeCustomAttributeData.m_namedArgs, and System.Reflection.RuntimeCustomAttributeData.m_typedCtorArgs.

Referenced by System.Reflection.RuntimeCustomAttributeData.RuntimeCustomAttributeData().