Repository navigation
FR CSharp Directive Load
Codex edited this page Oct 11, 2026
·
2 revisions
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
La directive de script charge un autre fichier .csx. Pour un projet standard, utilisez Compile ou ProjectReference.
Enregistrez cet exemple séparément dans Example.csx. Exécutez-le indépendamment des autres exemples de cette page.
Example.csx:
#load "helper.csx"
UO.Print(Double(4).ToString());helper.csx:
int Double(int value) => value * 2;Résultat:
8
#load "helper.csx"#load "helper.csx"
UO.Print(Double(4).ToString());Fichier helper.csx :
int Double(int value) => value * 2;#load "settings.csx"
UO.Print($"{ProfileName}:{Limit}");Fichier settings.csx :
string ProfileName = "Archer";
int Limit = 3;Source officielle : Microsoft Apprendre.
ClassicUO — Bad Newbie & C# Scripts IDE