Is there any character limitation in Dictionary Keys?
In .NET can I use any string as a dictionary key? This is part of a templating engine and I'm planning allow users to add their custom headers and values. Headers will be something like "Value of X" or "Summary of Analyse & XYZ Reports", I'm worried if they would get an exception in a rare character or something like that. I assume there size limit but expecting it to be larger than 256 characters. MSDN hasn't got any details on the subject. Mehrdad Afshari Yes, it can use any valid string (which is limited to a couple billion bytes). BTW, you might pass a custom IEqualityComparer<T> that you