At more and more places all over my code, I am using KeyValuePair<string,string>
and Dictionary<string,string>
in the following way: The KeyValuePair
contains primary eMail and UPN name, and I always fail to memorize which one is in Key
and which one is in Value
.
Can I "derive" classes from KVP/Dict in such a way that I only rename Key
and Value
(to UPN and eMail, respectively), but keep all their inner workings?
If not, which other easy-to-maintain possibilities do I have to help me memorizing which one is which?