In C#, how do I find whether a string has a carriage return by using the String.Contains
function?
The ascii for carriage return is 13.
Chr(13)
is how a carriage return is represented in Visual Basic. How is a carriage return represented in C# using its ascii character and not "\r"
?
if (word.Contains(Chr(13))
{
.
.
.
}
"\r"
(or, if you want achar
,'\r'
)? – Barrios