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

◆ SetCustomAttribute() [1/2]

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

Definition at line 680 of file MethodBuilder.cs.

681 {
682 if ((object)con == null)
683 {
684 throw new ArgumentNullException("con");
685 }
686 if (binaryAttribute == null)
687 {
688 throw new ArgumentNullException("binaryAttribute");
689 }
691 TypeBuilder.DefineCustomAttribute(m_module, MetadataToken, m_module.GetConstructorToken(con), binaryAttribute);
692 if (IsKnownCA(con))
693 {
694 ParseCA(con);
695 }
696 }
static bool IsKnownCA(ConstructorInfo con)
void ParseCA(ConstructorInfo con)
int GetConstructorToken(ConstructorInfo con)

References System.Reflection.Emit.TypeBuilder.DefineCustomAttribute(), System.Reflection.Emit.ModuleBuilder.GetConstructorToken(), System.Reflection.Emit.MethodBuilder.IsKnownCA(), System.Reflection.Emit.MethodBuilder.m_module, System.Reflection.Emit.MethodBuilder.ParseCA(), and System.Reflection.Emit.MethodBuilder.ThrowIfGeneric().

Referenced by System.Reflection.Emit.ConstructorBuilder.SetCustomAttribute(), and System.Reflection.Emit.ConstructorBuilder.SetCustomAttribute().