shim 8 年之前
父節點
當前提交
5e305c82a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS_DLLTest/Form1.cs

+ 1 - 1
UAS_DLLTest/Form1.cs

@@ -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;
                 }