© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
27 replies
Dilly
❔ Comparing Types using local var Type type
Hello
, I am trying to write a method comparing types to clean up my code
. I am trying to use a single method to sort through a list and pull out specific elements by type
.
(type being a child class of the lists type
)
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
Comparing types when using reflection
C
C# / help
4y ago
Using 'var' instead of explicitly stating the type
C
C# / help
6mo ago
✅ comparing variables
C
C# / help
9mo ago
❔ comparing classes
C
C# / help
3y ago