Namespace: SpawnDev.SpawnJS.JSObjects
Source: JSObjects/TextDecoderOptions.cs
MDN Reference: TextDecoderOptions on MDN
https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder#options
| Property | Type | Access | Description |
|---|---|---|---|
TextDecoderOptions |
class |
get | https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder#options |
Fatal |
bool? |
get |
SpawnDev.SpawnJS Mapping Note: The JavaScript examples below show the standard Web API usage. In SpawnDev.SpawnJS, the same API is available with C# conventions:
- Properties and methods use PascalCase (e.g.,
readyStatebecomesReadyState)- Events use ActionEvent with
+=/-=(e.g.,addEventListener("click", fn)becomesOnClick += handler)- Async methods return
Task<T>instead ofPromise<T>- Objects should be disposed with
usingstatements- Access via
JS.Get<TextDecoderOptions>(...)or constructornew TextDecoderOptions(...)
const textDecoder1 = new TextDecoder("iso-8859-2");
const textDecoder2 = new TextDecoder();
const textDecoder3 = new TextDecoder("csiso2022kr", { fatal: true });
// Allows TypeError exception to be thrown.
const textDecoder4 = new TextDecoder("iso-2022-cn");
// Throws a RangeError exception.