You put an @ sign in front of the double-quoted string.

String ex = @"This has a carriage return\r\n"