API Browser

Static class

SubmissionRuntime

static class SubmissionRuntime

Namespace: Raven.CodeAnalysis.Scripting
Assembly: Raven.CodeAnalysis.dll
Source file: SubmissionRuntime.cs

Provides the ambient value storage used by compiled Raven script submissions.

Remarks

This type is public because emitted submissions call it directly. Hosts should use the higher-level scripting APIs instead.

Methods

4 items
Static member: Enter(variables: object?[]) -> IDisposable Enters an execution scope backed by the specified submission variables.
Static member: Get<T>(slot: int) -> T Gets a typed submission variable from the current execution scope.
Static member: Set<T>(slot: int, value: T) -> () Stores a typed submission variable in the current execution scope.
Static member: SetResult<T>(value: T) -> () Stores the value produced by the trailing expression of a submission.