JsEngineScope Struct
The scope returned by JsEngine.Enter: disposing it restores the previous engine of the thread.
public readonly struct JsEngineScope : IDisposable, IEquatable<JsEngineScope>- Implements
Methods
| Name | Description |
|---|---|
| Dispose() | Restores the previous engine of the thread. |
| Equals(JsEngineScope) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
Dispose()
JsEngineScope.csRestores the previous engine of the thread.
public void Dispose()Equals overloads
Equals(JsEngineScope)
JsEngineScope.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(JsEngineScope other)Parameters
otherJsEngineScope- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
JsEngineScope.csGetHashCode()
JsEngineScope.csOperators
| Name | Description |
|---|---|
| operator ==(JsEngineScope, JsEngineScope) | Compares two scopes. |
| operator !=(JsEngineScope, JsEngineScope) | Compares two scopes. |
operator ==(JsEngineScope, JsEngineScope)
JsEngineScope.csCompares two scopes.
public static bool operator ==(JsEngineScope left, JsEngineScope right)operator !=(JsEngineScope, JsEngineScope)
JsEngineScope.csCompares two scopes.
public static bool operator !=(JsEngineScope left, JsEngineScope right)