private void btn_ReadStringFromBDB_Click(object sender, RoutedEventArgs e) { var guid = this.tbox_Key.Text; var key = new DatabaseEntry(); key.Data = Encoding.ASCII.GetBytes(guid); KeyValuePair <DatabaseEntry, DatabaseEntry> pair = bdb.Get(key); EMessageBox.Show(Encoding.ASCII.GetString(pair.Value.Data)); }