JsSymbol Class
A JavaScript symbol. Two symbols are the same value only if they are the same instance.
public sealed class JsSymbol : JsCell- Inheritance
JsCellJsSymbol
Properties
| Name | Description |
|---|---|
| AsyncDispose | Gets the well-known symbol Symbol.asyncDispose. |
| AsyncIterator | Gets the well-known symbol Symbol.asyncIterator. |
| Description | Gets the description of the symbol, or null (Symbol()). |
| Dispose | Gets the well-known symbol Symbol.dispose. |
| HasInstance | Gets the well-known symbol Symbol.hasInstance. |
| IsConcatSpreadable | Gets the well-known symbol Symbol.isConcatSpreadable. |
| IsRegistered | Gets whether the symbol is in the global symbol registry of an engine (Symbol.for(), see JsEngine.GetRegisteredSymbol): its JsSymbol.Description is its key (Symbol.keyFor()), and it cannot be held weakly. |
| Iterator | Gets the well-known symbol Symbol.iterator. |
| Match | Gets the well-known symbol Symbol.match. |
| MatchAll | Gets the well-known symbol Symbol.matchAll. |
| Metadata | Gets the well-known symbol Symbol.metadata (the decorators proposal). |
| Replace | Gets the well-known symbol Symbol.replace. |
| Search | Gets the well-known symbol Symbol.search. |
| Species | Gets the well-known symbol Symbol.species. |
| Split | Gets the well-known symbol Symbol.split. |
| ToPrimitive | Gets the well-known symbol Symbol.toPrimitive. |
| ToStringTag | Gets the well-known symbol Symbol.toStringTag. |
| Unscopables | Gets the well-known symbol Symbol.unscopables. |
AsyncDispose
JsSymbol.csAsyncIterator
JsSymbol.csDescription
JsSymbol.csDispose
JsSymbol.csHasInstance
JsSymbol.csIsConcatSpreadable
JsSymbol.csIsRegistered
JsSymbol.csGets whether the symbol is in the global symbol registry of an engine (Symbol.for(), see JsEngine.GetRegisteredSymbol): its JsSymbol.Description is its key (Symbol.keyFor()), and it cannot be held weakly.
public bool IsRegistered { get; }Property value
Iterator
JsSymbol.csMatch
JsSymbol.csMatchAll
JsSymbol.csMetadata
JsSymbol.csReplace
JsSymbol.csSearch
JsSymbol.csSpecies
JsSymbol.csSplit
JsSymbol.csToPrimitive
JsSymbol.csToStringTag
JsSymbol.csUnscopables
JsSymbol.csMethods
| Name | Description |
|---|---|
| Create(string?) | Creates a new symbol (Symbol(description)): it is different from every other symbol, including the symbols with the same description. Unlike the objects, a symbol can be used by several engines. |
| ToString() | Returns Symbol(description) (SymbolDescriptiveString). |
Create(string?)
JsSymbol.csCreates a new symbol (Symbol(description)): it is different from every other symbol, including the symbols with the same description. Unlike the objects, a symbol can be used by several engines.