Why am I getting this error because of this code:

Code:
int intStart = str.LastIndexOf("\");
str is a string