I'm trying to do the following.
private static Dictionary<int, object> MAPS = new Dictionary<int, object>
{
{1, new {1, 2, 3}}
};
It doesn't work as I'd expect based on MSDN, so I'm pretty certain that the issue is that I'm using anonymous objects. Supposed that I don't want to create a new type for my thingies and still want to keep all the mappings in the same dictionary, what should I do?
I've seen this answer but it's a bit dated now so I'm hoping there's something new for that in the framework.