JsScriptContextScope Struct
The scope returned by JsEngine.EnterActiveScriptOrModule: disposing it pops the execution context.
public readonly struct JsScriptContextScope : IDisposable, IEquatable<JsScriptContextScope>Methods
| Name | Description |
|---|---|
| Dispose() | Pops the execution context. |
| Equals(JsScriptContextScope) | 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()
JsScriptContextScope.csPops the execution context.
public void Dispose()Equals overloads
Equals(JsScriptContextScope)
JsScriptContextScope.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(JsScriptContextScope other)Parameters
otherJsScriptContextScope- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
JsScriptContextScope.csGetHashCode()
JsScriptContextScope.csOperators
| Name | Description |
|---|---|
| operator ==(JsScriptContextScope, JsScriptContextScope) | Compares two scopes. |
| operator !=(JsScriptContextScope, JsScriptContextScope) | Compares two scopes. |
operator ==(JsScriptContextScope, JsScriptContextScope)
JsScriptContextScope.csCompares two scopes.
public static bool operator ==(JsScriptContextScope left, JsScriptContextScope right)operator !=(JsScriptContextScope, JsScriptContextScope)
JsScriptContextScope.csCompares two scopes.
public static bool operator !=(JsScriptContextScope left, JsScriptContextScope right)