Пример #1
0
 private MethodInfo TryGetComRegisterMethod(IEnumerable <MethodInfo> methods)
 {
     foreach (MethodInfo item in methods)
     {
         if (MethodUtils.HasAttribute <ComUnregisterFunctionAttribute>(item))
         {
             return(item);
         }
     }
     return(null);
 }
Пример #2
0
 private MethodInfo TryGetNetOfficeRegisterMethod(IEnumerable <MethodInfo> methods)
 {
     foreach (MethodInfo item in methods)
     {
         if (MethodUtils.HasAttribute(item, _NetOfficeRegisterName))
         {
             return(item);
         }
     }
     return(null);
 }