public static ExcelObjectMethodAttribute GetAttribute(MethodInfo mi) { object[] o = mi.GetCustomAttributes(typeof(ExcelObjectMethodAttribute), false); ExcelObjectMethodAttribute r = (ExcelObjectMethodAttribute)o[0]; return(r); }
public CacheItemMethod(MethodInfo mi) { _mi = mi; _attr = CU.GetAttribute(_mi); }