Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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.
61,871
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