public static void show <Key, Value, Data>(this DBFactory <Key, Value> db) { foreach (Key key in db.Keys()) { Value value; db.getValue(key, out value); DBElement <Key, Data> elem = value as DBElement <Key, Data>; Write("\n\n -- key = {0} --", key); Write(elem.showElement()); } }
public static void show <Key, Value, Data>(this DBFactory <Key, Value> db) { "Displaying DB contents :".title('_'); Value value; foreach (Key key in db.Keys()) { db.getValue(key, out value); DBElement <Key, Data> elem = value as DBElement <Key, Data>; Write("\n\n -- key = {0} --", key); Write(elem.showElement()); Write("\n\n -- key = {0} --", key); } "".demarcation(); }