Search
Get Started
C
C#
•
2y ago
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,119
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
where T: class
where T: class
Similar Threads
❔ Why .Where() doesn't work with .Include()?
C
C# / help
3y ago
❔ ✅ WPF Class derivation where both classes have XAML pages
C
C# / help
3y ago
❔ Why hasn't my class implemented the interface?
C
C# / help
3y ago
✅ Where a can learnSqlCommand Class
C
C# / help
12mo ago