Answers for "c# detect if string has a nubmer and store it"

C#
1

c# detect if string has a nubmer and store it

string input = Console.ReadLine();
int parsedId;
int.TryParse(input, out parsedId)
//i tried it on string that are more than just numbers it can detect but cant store
//example input=65,parsedId=65    input=65acd,parseid=0 ??
//i say youre better of learning regex or linq (i know it sucks)
//upvote so my whore ex wife gives me back the kids
Posted by: Guest on July-08-2021

Code answers related to "c# detect if string has a nubmer and store it"

C# Answers by Framework

Browse Popular Code Answers by Language