Skip to content
Tracon

SkillScriptNaming

Namespace Tracon · Assembly Tracon.Core.dll

Validates the file name a stored script is written under.

public static class SkillScriptNaming

objectSkillScriptNaming

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Reports whether the name is a plain file name.

public static bool IsSafeFileName(string? scriptName)

scriptName string?

The candidate name.

bool

true when the name is safe to combine with a directory.

Returns the name when it is a plain file name.

public static string RequireSafeFileName(string scriptName)

scriptName string

The script name as stored.

string

The same name.

TraconException

The name is not a plain file name.