Class SandboxType
Namespace: DotBoxD.Kernels.Sandbox
Assembly: DotBoxD.Kernels.dll
public sealed record SandboxType : IEquatable<SandboxType>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”SandboxType(string, IReadOnlyList<SandboxType>)
Section titled “ SandboxType(string, IReadOnlyList<SandboxType>)”public SandboxType(string Name, IReadOnlyList<SandboxType> Arguments)Parameters
Section titled “Parameters”Name string
Arguments IReadOnlyList<SandboxType>
Fields
Section titled “Fields”RecordName
Section titled “ RecordName”public const string RecordName = "Record"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Arguments
Section titled “ Arguments”public IReadOnlyList<SandboxType> Arguments { get; init; }Property Value
Section titled “Property Value”public static SandboxType Bool { get; }Property Value
Section titled “Property Value”public static SandboxType F64 { get; }Property Value
Section titled “Property Value”public static SandboxType Guid { get; }Property Value
Section titled “Property Value”public static SandboxType I32 { get; }Property Value
Section titled “Property Value”public static SandboxType I64 { get; }Property Value
Section titled “Property Value”IsRecord
Section titled “ IsRecord”public bool IsRecord { get; }Property Value
Section titled “Property Value”public string Name { get; init; }Property Value
Section titled “Property Value”SandboxPath
Section titled “ SandboxPath”public static SandboxType SandboxPath { get; }Property Value
Section titled “Property Value”SandboxUri
Section titled “ SandboxUri”public static SandboxType SandboxUri { get; }Property Value
Section titled “Property Value”String
Section titled “ String”public static SandboxType String { get; }Property Value
Section titled “Property Value”public static SandboxType Unit { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(SandboxType?)
Section titled “ Equals(SandboxType?)”Indicates whether the current object is equal to another object of the same type.
public bool Equals(SandboxType? other)Parameters
Section titled “Parameters”other SandboxType?
An object to compare with this object.
Returns
Section titled “Returns”true if the current object is equal to the other parameter; otherwise, false.
GetHashCode()
Section titled “ GetHashCode()”Serves as the default hash function.
public override int GetHashCode()Returns
Section titled “Returns”A hash code for the current object.
IsForbidden()
Section titled “ IsForbidden()”public bool IsForbidden()Returns
Section titled “Returns”IsForbiddenName(string?)
Section titled “ IsForbiddenName(string?)”public static bool IsForbiddenName(string? name)Parameters
Section titled “Parameters”name string?
Returns
Section titled “Returns”IsKnown(int)
Section titled “ IsKnown(int)”public bool IsKnown(int maxDepth = 8)Parameters
Section titled “Parameters”maxDepth int
Returns
Section titled “Returns”IsKnown(IReadOnlySet<string>, int)
Section titled “ IsKnown(IReadOnlySet<string>, int)”public bool IsKnown(IReadOnlySet<string> declaredOpaqueIdTypes, int maxDepth = 8)Parameters
Section titled “Parameters”declaredOpaqueIdTypes IReadOnlySet<string>
maxDepth int
Returns
Section titled “Returns”IsKnownBuiltIn(int)
Section titled “ IsKnownBuiltIn(int)”public bool IsKnownBuiltIn(int maxDepth = 8)Parameters
Section titled “Parameters”maxDepth int
Returns
Section titled “Returns”IsKnownOpaqueId(string)
Section titled “ IsKnownOpaqueId(string)”Structural predicate: a name denotes an opaque-id brand when it is a well-formed
identifier that is not a built-in scalar, not a collection constructor, and not a
forbidden CLR-shaped name. Whether a given brand is permitted for a particular run
is a host/policy decision (see SandboxPolicy.DeclaredOpaqueIdTypes), not a
structural one.
public static bool IsKnownOpaqueId(string name)Parameters
Section titled “Parameters”name string
Returns
Section titled “Returns”IsValidMapKey()
Section titled “ IsValidMapKey()”public bool IsValidMapKey()Returns
Section titled “Returns”IsValidMapKey(IReadOnlySet<string>?)
Section titled “ IsValidMapKey(IReadOnlySet<string>?)”public bool IsValidMapKey(IReadOnlySet<string>? declaredOpaqueIdTypes)Parameters
Section titled “Parameters”declaredOpaqueIdTypes IReadOnlySet<string>?
Returns
Section titled “Returns”IsWellFormedOpaqueIdName(string)
Section titled “ IsWellFormedOpaqueIdName(string)”public static bool IsWellFormedOpaqueIdName(string name)Parameters
Section titled “Parameters”name string
Returns
Section titled “Returns”List(SandboxType)
Section titled “ List(SandboxType)”public static SandboxType List(SandboxType item)Parameters
Section titled “Parameters”item SandboxType
Returns
Section titled “Returns”Map(SandboxType, SandboxType)
Section titled “ Map(SandboxType, SandboxType)”public static SandboxType Map(SandboxType key, SandboxType value)Parameters
Section titled “Parameters”key SandboxType
value SandboxType
Returns
Section titled “Returns”Record(IReadOnlyList<SandboxType>)
Section titled “ Record(IReadOnlyList<SandboxType>)”A composite record/object type: an ordered, positional list of field types (≥ 1). Field names are not part of the structural type — the analyzer and the host marshaling layer map fields to a C# DTO’s declared member order. Records can nest (a field may itself be a record, list, or map).
public static SandboxType Record(IReadOnlyList<SandboxType> fields)Parameters
Section titled “Parameters”fields IReadOnlyList<SandboxType>
Returns
Section titled “Returns”Scalar(string)
Section titled “ Scalar(string)”public static SandboxType Scalar(string name)Parameters
Section titled “Parameters”name string
Returns
Section titled “Returns”ToString()
Section titled “ ToString()”Returns a string that represents the current object.
public override string ToString()Returns
Section titled “Returns”A string that represents the current object.