Class QuickScriptSafetyResult
- Inheritance
-
QuickScriptSafetyResult
- Inherited Members
- Namespace
- TabularEditor.Shared.Scripting
- Assembly
- TabularEditor3.Shared.dll
Result of a quick script safety analysis (without full compilation).
public class QuickScriptSafetyResult
- Extension Methods
Properties
HasReferenceDirective
Whether the script contains #r reference directives.
public bool HasReferenceDirective { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSafe
Whether the script appears safe (no reference directives and no unsafe namespaces).
public bool IsSafe { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UnsafeNamespaces
Namespaces used in using statements that are not in the safe list.
public IReadOnlyList<string> UnsafeNamespaces { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Methods
GetWarningMessage()
Generates a human-readable safety warning message.
public string GetWarningMessage()
Returns
| Type | Description |
|---|---|
| string |