quoteSingle

Summary

Wraps the string in single quotes.

Usage

public string quoteSingle()

Returns

The string wrapped in single quotes.

Description

Wraps the string in single quotes (').

Examples

Basic Usage
1
2
3
4
import System;
 
System.String s = new System.String("abc");
string quoted = s.quoteSingle(); // 'abc'
With Auto-boxing
1
2
3
import System;
 
string quoted = 'abc'.quoteSingle(); // 'abc'

Share

HTML | BBCode | Direct Link