Reputation: 8841
This is very basic question but I am not able to find the position of a particular character. For example:
string a = "ABCDE";
I want the position of "E" from above string.
Upvotes: 6
Views: 41741
Reputation: 1427
Use IndexOf
var pos = a.IndexOf('E');
Upvotes: 22