© 2026 Hedgehog Software, LLC

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

How to use Tuple in generic class?

So I know you can use Tuple<Type, Func<object>> for example, but is there any way to just use (Type type, Func<Object> obj)? Or even give Tuple<> names so it isn't Item1, Item2?

I imagine if this isn't implemented it has to do with how the () tuple works at compile, but I would think it is easy enough on compile time to just do .ToTuple() wherever it would be needed.
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

❔ generic class in generic method
C#CC# / help
3y ago
Generic Class Help
C#CC# / help
3y ago
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
C#CC# / help
15mo ago
Generic XML Node to Class
C#CC# / help
3y ago