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.
Use IndexOf
var pos = a.IndexOf('E');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With