Skip to content

M_CodeJam_Strings_StringExtensions_Unquote_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

StringExtensions.Unquote Method (String, Char, Boolean)

Remove one set of leading and trailing dquotationChar, if both are present.

Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static string Unquote(
	this string arg,
	char quotationChar,
	out bool quoted
)

VB

<ExtensionAttribute>
Public Shared Function Unquote ( 
	arg As String,
	quotationChar As Char,
	<OutAttribute> ByRef quoted As Boolean
) As String

F#

[<ExtensionAttribute>]
static member Unquote : 
        arg : string * 
        quotationChar : char * 
        quoted : bool byref -> string 

Parameters

 

arg
Type: System.String
String to unquote.
quotationChar
Type: System.Char
Quotation char
quoted
Type: System.Boolean
Set to true, if arg was quoted.

Return Value

Type: String
Unquoted arg, if arg is quoted, or arg itself.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

StringExtensions Class
Unquote Overload
CodeJam.Strings Namespace

Clone this wiki locally