|
|
@@ -118,7 +118,7 @@ namespace UAS_DLLTest
|
|
|
method = helper.GetType().GetMethods();
|
|
|
for (int i=0;i<method.Length;i++) {
|
|
|
//判断是否需要显示
|
|
|
- if ((method[i].GetCustomAttribute(typeof(DescriptionAttribute)) as DescriptionAttribute) == null)
|
|
|
+ if (method[i].GetCustomAttributes(typeof(DescriptionAttribute), true).Length==0)
|
|
|
{
|
|
|
continue;
|
|
|
}
|