Pages

Monday 7 January 2013

Turning a single quote into an escaped single quote within a string

string s = "John's book.";
s = s.Replace("'", @"\'");

No comments:

Post a Comment