© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ Generic nullable type
C
C# / help
3y ago
❔ Bool method that doesn't work
C
C# / help
3y ago
Using pointers as generic a generic type
C
C# / help
4y ago
Marshalling bool
C
C# / help
2y ago