Repository navigation
DE CSharp Directive Load
Codex edited this page Oct 11, 2026
·
2 revisions
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
Handbuch C# · Praktischer Leitfaden
Die Skriptanweisung lädt eine weitere .csx-Datei. Für ein reguläres Projekt verwenden Sie Compile oder ProjectReference.
Speichern Sie dieses Beispiel separat als Example.csx. Führen Sie es unabhängig von den anderen Beispielen dieser Seite aus.
Example.csx:
#load "helper.csx"
UO.Print(Double(4).ToString());helper.csx:
int Double(int value) => value * 2;Ergebnis:
8
#load "helper.csx"#load "helper.csx"
UO.Print(Double(4).ToString());Datei helper.csx:
int Double(int value) => value * 2;#load "settings.csx"
UO.Print($"{ProfileName}:{Limit}");Datei settings.csx:
string ProfileName = "Archer";
int Limit = 3;Offizielle Quelle: Microsoft Learn.
ClassicUO — Bad Newbie & C# Scripts IDE