Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1 KB

File metadata and controls

24 lines (17 loc) · 1 KB

String

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/String.cs
MDN Reference: String on MDN

The String object is used to represent and manipulate a sequence of characters. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String

Constructors

Signature Description
String(SpawnJSObjectReference _ref) Deserialization constructor
String(object thing) The String() constructor creates String objects. Anything to be converted to a string.

Methods

Method Return Type Description
string(String strObj) implicit operator Implicit conversion to .Net string
ValueOf() string Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf() method.
ToString() string Returns the primitive string as a .Net string