© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Populus

Nested KeyValuePair

private KeyValuePair<string, double> priceAndCurrency;
        
private KeyValuePair<string, KeyValuePair<>> periodAndPriceAndCurrency;
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Line-seperated list from KeyValuePair
C#CC# / help
4y ago
❔ JSON array to List KeyValuePair with Newtonsoft.JSON?
C#CC# / help
4y ago
✅ List<KeyValuePair<Trader, long>> requires primary key to be defined
C#CC# / help
2y ago
✅ Sorting nested
C#CC# / help
4y ago