@aksh1yadav, @Sarah_Johan, I can’t resist
Uses my mildly customized lib CLR.ahk, renamed to CLR_AHK, see here, which has lots of functions available. My included CLR_H.ahk may well not account for other declarations of built-in variables, which AutoHotKey.dll doesn’t allow. (Here I just replaced “null” with “nulo” in the script, renamed it, and Robert’s your mother’s brother.)
This’ll compile both C# and VB.Net on the fly, see the link for examples.
“I_can_C_sharp.xaml”, “CLR_H.ahk”, and “UiPath_CLR” are included in the archive.
C-Sharp-CLR.zip (3.6 KB)