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

◆ IsDefined()

override bool System.Reflection.Emit.DynamicMethod.RTDynamicMethod.IsDefined ( Type attributeType,
bool inherit )
inline

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 123 of file DynamicMethod.cs.

124 {
125 if (attributeType == null)
126 {
127 throw new ArgumentNullException("attributeType");
128 }
129 if (attributeType.IsAssignableFrom(typeof(MethodImplAttribute)))
130 {
131 return true;
132 }
133 return false;
134 }

References System.Type.IsAssignableFrom().

Referenced by System.Reflection.Emit.DynamicMethod.IsDefined().