using System.IO; using System; class Program { static void Main() { string phone = "9019441572"; bool IsInternational = !phone.Substring(phone.IndexOf("+"), phone.IndexOf("-") + 1).Equals("+91-"); Console.WriteLine("IsInternational:= "+ IsInternational); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more