G
Guest
Hello everyone,
I am trying to remove the escape characters from my C# string. This is the
string "\"Water lilies.jpg\"". I want to just get "Water lilies.jpg". I
tried indexof, that didn't work.
string x = "\"Water lilies.jpg\""
int y = x.Indexof("\\",0)
y returned -1
I cannot use substring because the name can change. It can be water Lillies
or something else or lengthier name.
I am trying to remove the escape characters from my C# string. This is the
string "\"Water lilies.jpg\"". I want to just get "Water lilies.jpg". I
tried indexof, that didn't work.
string x = "\"Water lilies.jpg\""
int y = x.Indexof("\\",0)
y returned -1
I cannot use substring because the name can change. It can be water Lillies
or something else or lengthier name.