private MethodInfo TryGetComRegisterMethod(IEnumerable <MethodInfo> methods)
 {
     foreach (MethodInfo item in methods)
     {
         if (MethodUtils.HasAttribute <ComUnregisterFunctionAttribute>(item))
         {
             return(item);
         }
     }
     return(null);
 }
 private MethodInfo TryGetNetOfficeRegisterMethod(IEnumerable <MethodInfo> methods)
 {
     foreach (MethodInfo item in methods)
     {
         if (MethodUtils.HasAttribute(item, _NetOfficeRegisterName))
         {
             return(item);
         }
     }
     return(null);
 }