Wednesday 5 June 2019

C# - Check if string is double and if yes assign value to variable


Watch this example on YouTube

           

double test;
            string SomeValue = "333";
            bool res = false;
            if(Double.TryParse(SomeValue, out test))
            {
                res = true;
            }

No comments:

Post a Comment