C#C
C#4y ago
Populus

Nested KeyValuePair

private KeyValuePair<string, double> priceAndCurrency;
        
private KeyValuePair<string, KeyValuePair<>> periodAndPriceAndCurrency;


I want to create a to-do / shopping list and need to write up price in selected currency and also have a datapoint for things like subscriptions or even due bills.

Any other type that would be simpler than what I'm trying to do here? If no, what's wrong with what I'm doing?
Was this page helpful?