© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Better way to check a list of characters? - C#
C
C#
•
2y ago
•
7 replies
🌷💐 morgan 🌺💐
Better way to check a list of characters?
There has to be a better way than doing this
myWord == "-" || myWord == "~" || myWord == "—"...
myWord == "-" || myWord == "~" || myWord == "—"...
I also don
't really want to make a array and have to loop through them all because that seems like code would pile up quickly
. I
'm hoping for a function that does what I
'm looking for
?
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
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ How to check whether a given list is present in the List of list
C
C# / help
4y ago
❔ Better way of handling this?
C
C# / help
4y ago
❔ Better way to check 2 dictionaries against one another?
C
C# / help
3y ago