© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
✅ Shorten inline switch with multiple passing values - C#
C
C#
•
4y ago
•
4 replies
Indeed
✅ Shorten inline switch with multiple passing values
Hi
!
Would there be a way to shorten this
?
In python
, their pattern matching would have a simple
in [x1,x2,x3]
in [x1,x2,x3]
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ How to shorten switch statement
C
C# / help
4y ago
✅ Shorten Property code
C
C# / help
2y ago
Cannot display multiple buttons inline using ToastContentBuilder()
C
C# / help
3y ago