What does the dictionary <string, / "> mean?
I looked at this construct in an online tutorial:
Dictionary<string, /> dictionary = new Dictionary<string, />(); I had not seen this syntax before and did not know what this means. I'm not even sure if this is really the syntax in general, since I cannot get it to compile myself.
+8
Matt
source share1 answer
Matt, your intuition is correct ... this is an invalid syntax. The forward slash character cannot be part of a valid type name.
Looking at the tutorial in question and how to use the dictionary, it looks like the definition should be Dictionary<string, object> . Perhaps there was some strange formatting error when the code was sent to CodeProject.
+8
Monroe thomas
source share