How would I rewrite the below C++ code into C#?
std::string someVariable;
std::map<std::string, std::function<void (std::string)>> myMap;
myMap.insert(std::make_pair("someText", [&](std::string input){someVariable = input;});
I have tried playing with delegates but I am not quite understanding it yet.