C# Dictionary with two Values per Key?

Actually, what you’ve just described is an ideal use for the Dictionary collection. It’s supposed to contain key:value pairs, regardless of the type of value. By making the value its own class, you’ll be able to extend it easily in the future, should the need arise.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)