Under the "Common Practices and Code Improvements" rubric, Resharper says about this line:
If dt(0)("ThemeWidth").ToString.IndexOf("%") > "0" Then
headerPanel.Width = Unit.Percentage(dt(0)("ThemeWidth").ToString.Replace("%", ""))
"String.IndexOf(string) is culture-specific" and encourages me to change it to this:
If dt(0)("ThemeWidth").ToString.IndexOf("%", StringComparison.Ordinal) > "0" Then
headerPanel.Width = Unit.Percentage(dt(0)("ThemeWidth").ToString.Replace("%", ""))
Why? What does adding "StringComparison.Ordinal" do for me that improves this code?