© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
UnemployedNinja

Generic type that extends bool

How can I make my generic type "extend" boolean?
class MyClass<T> where T : bool {
}
class MyClass<T> where T : bool {
}
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

✅ Generic nullable type
C#CC# / help
3y ago
❔ Bool method that doesn't work
C#CC# / help
3y ago
Using pointers as generic a generic type
C#CC# / help
4y ago
Marshalling bool
C#CC# / help
2y ago