© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
12 replies
Mango

✅ generic mess

If I have a type that takes <T, E> is there a way to return T generically I.E.
private async Task<Result<T, string>> Get<T>(T type) 
private async Task<Result<T, string>> Get<T>(T type) 

Where T is a type I pass in
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Array mess
C#CC# / help
3y ago
✅ Why is this generic mess invalid? ('Does not implement interface' error)
C#CC# / help
8mo ago
❔ generic class in generic method
C#CC# / help
3y ago
Generic Interfaces
C#CC# / help
3y ago