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

◆ SetCustomAttribute() [1/2]

void System.Reflection.Emit.EventBuilder.SetCustomAttribute ( ConstructorInfo con,
byte[] binaryAttribute )
inline

Definition at line 57 of file EventBuilder.cs.

58 {
59 if (con == null)
60 {
61 throw new ArgumentNullException("con");
62 }
63 if (binaryAttribute == null)
64 {
65 throw new ArgumentNullException("binaryAttribute");
66 }
68 TypeBuilder.DefineCustomAttribute(m_module, m_evToken, m_module.GetConstructorToken(con), binaryAttribute);
69 }
int GetConstructorToken(ConstructorInfo con)

References System.Reflection.Emit.TypeBuilder.DefineCustomAttribute(), System.Reflection.Emit.ModuleBuilder.GetConstructorToken(), System.Reflection.Emit.EventBuilder.m_evToken, System.Reflection.Emit.EventBuilder.m_module, System.Reflection.Emit.EventBuilder.m_type, and System.Reflection.Emit.TypeBuilder.ThrowIfCreated().