© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
EinfachNurBaum

❔ Item.Is a Number

Hey, I have this list:
        { "+", "-", "*", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
        { "+", "-", "*", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };

I iterate through the list with a foreach. I want to check if the item is a number or not. So is there something like
foreach
   if((int)item.Is a number)
      .....
foreach
   if((int)item.Is a number)
      .....
?
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

❔ Item to number
C#CC# / help
3y ago
✅ Check if an item is in a list
C#CC# / help
2y ago
✅ After a number is entered the program ends
C#CC# / help
3y ago
random item from a record
C#CC# / help
3y ago