Literal notation for Dictionary in C#?
I currently have a WebSocket between JavaScript and a server programmed in C#. In JavaScript, I can pass data easily using an associative array: var data = {‘test’: ‘val’, ‘test2’: ‘val2′}; To represent this data object on the server side, I use a Dictionary<string, string>, but this is more ‘typing-expensive’ than in JavaScript: Dictionary<string, string> … Read more