#include <xtd/collections/hashtable>
#include <xtd/console>
auto main() -> int {
open_with["txt"] = "notepad.exe";
open_with["bmp"] = "paint.exe";
open_with["dib"] = "paint.exe";
open_with["rtf"] = "wordpad.exe";
open_with["rtf"] = "winword.exe";
open_with["doc"] = "winword.exe";
if (!open_with.contains("ht")) {
open_with["ht"] = "hypertrm.exe";
}
for (auto de : open_with)
console::write_line(
"Key = {0}, Value = {1}", de.first, de.second);
open_with.erase("doc");
if (!open_with.contains("doc"))
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents the standard input, output, and error streams for console applications.
Definition console.h:36
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10