/// <summary> /// Helper to retrieve data. /// </summary> /// <param name="statement"></param> /// <param name="position"></param> /// <returns></returns> private object GetObject(ISQLiteStatement statement, int position) { try { return(statement.GetText(position)); } catch (Exception) { } try { return(statement.GetInteger(position)); } catch (Exception) { } try { return(statement.GetFloat(position)); } catch (Exception) { } return(null); }
/// <summary> /// Helper to retrieve data. /// </summary> /// <param name="statement"></param> /// <param name="position"></param> /// <returns></returns> private object GetObject(ISQLiteStatement statement, int position) { try { return statement.GetText(position); } catch (Exception) { } try { return statement.GetInteger(position); } catch (Exception) { } try { return statement.GetFloat(position); } catch (Exception) { } return null; }