KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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)) { . . . }
Tags (comma-separated)
Save Edits
Cancel