public static IList<CustomAttributeData> GetCustomAttributes(Module target)
{
if (target == null)
throw new ArgumentNullException("target");
if (target.IsResourceInternal())
return new List<CustomAttributeData>();
return GetCustomAttributes(target, target.MetadataToken);
}