The following example shows to keep the \r\n characters in the string after Serialization and Deserializtion.
Generally when you serialize an object with a string value that contains ‘\r\n\’ (Carriage Return and new line characters in string) and after deserialize it than in the outcome ‘\r’ is disappeared. Suppose if you string is ‘5 Avenue \r\n North road’, the string comes after deserialize as ‘5 Avenue \n North road’. Continue reading “Keep ‘\r\n’ in XML Serialization and Deserializtion in C#”