public static object GetCell(CacheControl cc, int row, string columnName, out int errorCode) { object value = null; object errCode = null; cc.GetCell(row, columnName, ref value, ref errCode); errorCode = (int)errCode; if (value != null) { return(value); } return(string.Empty); }
public static object GetCell(CacheControl cc, int row, string columnName, out int errorCode) { object value = null; object errCode = null; try { cc.GetCell(row, columnName, ref value, ref errCode); } catch (Exception e) { Console.WriteLine("Exception: " + e.Message + " " + e.StackTrace); } errorCode = (int)errCode; if (value != null) { return(value); } return(string.Empty); }