© 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
•
7 replies
Jason_Bjorn
Why `where T: class`
I am reading a book on c
# 12
. In this example the author includes
where T: class
where T: class
but why is that needed
?
It seems to work fine without
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
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ ✅ WPF Class derivation where both classes have XAML pages
C
C# / help
3y ago
❔ Why .Where() doesn't work with .Include()?
C
C# / help
3y ago
❔ Why hasn't my class implemented the interface?
C
C# / help
4y ago
✅ Where a can learnSqlCommand Class
C
C# / help
13mo ago