Duplicating a function in C # from some old VB code to perform string manipulation of email text. I'm not sure if this will work in all cases ... can anyone confirm my thoughts on the correct C # code? Are these equivalents?
Original VB:
function FixText(Mail_Text) dim Clean_Text Clean_Text = Mail_Text Clean_Text = Replace(Clean_Text, "=" & vbcrlf, "") Clean_Text = Replace(Clean_Text, ";" & vblrcf, "") ` ... other stuff FixText = Clean_Text End Function
New C #:
public String FixText(Mail_Text) { String Clean_Text = Mail_Text; Clean_Text = Clean_Text.Replace("=" + System.Environment.NewLine, ""); Clean_Text = Clean_Text.Replace(";" + System.Environment.NewLine, "");
Caryh source share