© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
30 replies
joki

❔ Does this method cause boxing of value types?

I was looking through the list<T> class and noticed that the Contains<T>(T item) method attemps to cast the 'item' to an object - '(object) item', does this not cause boxing for value types?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Boxing
C#CC# / help
14mo ago
Same UpdateDatabase method for multiple types of objects
C#CC# / help
4y ago
❔ Value types keep on changing??
C#CC# / help
3y ago