public static ExcelObjectPropertyAttribute GetAttribute(PropertyInfo pi) { object[] o = pi.GetCustomAttributes(typeof(ExcelObjectPropertyAttribute), false); ExcelObjectPropertyAttribute r = (ExcelObjectPropertyAttribute)o[0]; return(r); }
public CacheItemProperty(PropertyInfo pi) { _pi = pi; _attr = CU.GetAttribute(_pi); }