[SOLVED] String.IndexOfAny with startIndex > 0 doesnt work in browser
Posted: Wed Dec 20, 2017 4:00 am
Code: Select all
// Enter construction logic he;//re...
var uri = "http://host.com";
MessageBox.Show(uri.IndexOfAny(new char[] { '/', '?' }, 1).ToString()); //Em = 5 Browser = -1
MessageBox.Show(uri.IndexOfAny(new char[] { '/', '?' }, 0).ToString()); //Em = 5 Browser = 5