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

◆ GetCustomAttributes() [2/2]

override object[] System.Reflection.Emit.DynamicMethod.RTDynamicMethod.GetCustomAttributes ( Type attributeType,
bool inherit )
inline

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 99 of file DynamicMethod.cs.

100 {
101 if (attributeType == null)
102 {
103 throw new ArgumentNullException("attributeType");
104 }
105 if (attributeType.IsAssignableFrom(typeof(MethodImplAttribute)))
106 {
107 return new object[1]
108 {
110 };
111 }
112 return Array.Empty<object>();
113 }
override MethodImplAttributes GetMethodImplementationFlags()

References System.Reflection.Emit.DynamicMethod.RTDynamicMethod.GetMethodImplementationFlags(), and System.Type.IsAssignableFrom().

Referenced by System.Reflection.Emit.DynamicMethod.GetCustomAttributes(), and System.Reflection.Emit.DynamicMethod.GetCustomAttributes().