Encoding UtilsEscape Method
This method is used to replace carriage returns, line feeds, commas, semi-colons, and backslashes
within the string with an appropriate escape sequence (\r \n \, \; \\).
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The escaped string
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static string? Escape(
this string? escapeText
)VB
<ExtensionAttribute>
Public Shared Function Escape (
escapeText As String
) As StringC++
public:
[ExtensionAttribute]
static String^ Escape(
String^ escapeText
)F#
[<ExtensionAttribute>]
static member Escape :
escapeText : string -> string Parameters
- escapeText String
- The string to escape
Return Value
StringThe escaped string