public static Word GetWord(string word) { SearchWord sw; try { sw = new SearchWord(); } catch (Exception e) { throw new Exception("Could not open connection to offline database.", e); } Word w = sw.GetWordOffline(word); return(w); }