Docs · API reference · Verso.Kernels

CSharpKernelOptions Class#

Configuration options for the C# language kernel.

public sealed record CSharpKernelOptions : System.IEquatable<Verso.Kernels.CSharpKernelOptions>

Inheritance System.Object → CSharpKernelOptions

Implements System.IEquatable<CSharpKernelOptions>

Constructors#

CSharpKernelOptions(IReadOnlyList<string>, IReadOnlyList<string>) Constructor#

Configuration options for the C# language kernel.

public CSharpKernelOptions(System.Collections.Generic.IReadOnlyList<string>? DefaultImports=null, System.Collections.Generic.IReadOnlyList<string>? DefaultReferences=null);

Parameters#

DefaultImports System.Collections.Generic.IReadOnlyList<System.String>

Namespace imports automatically available in every cell.

DefaultReferences System.Collections.Generic.IReadOnlyList<System.String>

Assembly references automatically loaded for every cell.

Fields#

StandardImports Field#

Standard set of imports matching typical C# interactive sessions.

public static readonly IReadOnlyList<string> StandardImports;

Field Value#

System.Collections.Generic.IReadOnlyList<System.String>

Properties#

DefaultImports Property#

Namespace imports automatically available in every cell.

public System.Collections.Generic.IReadOnlyList<string>? DefaultImports { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>

DefaultReferences Property#

Assembly references automatically loaded for every cell.

public System.Collections.Generic.IReadOnlyList<string>? DefaultReferences { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>