quote

Summary

Wraps the string in double quotes.

Usage

public string quote()

Returns

The string wrapped in double quotes.

Description

Wraps the string in double quotes (").

Examples

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

Share

HTML | BBCode | Direct Link