Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

Comma Delimit by Lines with Quotes

Description
This Macro replaces all line breaks with commas surrounded by quotes.
Language
C#.net
Minimum Version
Created By
wooster11
Contributors
-
Date Created
Aug 19, 2014
Date Last Modified
Aug 19, 2014

Macro Code

using System;

public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        return "'" + text.Trim().Replace("\n", "', '").Replace("\r", "") + "'";
    }
}