-
Notifications
You must be signed in to change notification settings - Fork 1
Running C# scripts
winscripter edited this page Jan 9, 2024
·
1 revision
Use the ScriptRunner
class found in the DbgSharp
namespace to run C# scripts. These methods only call Microsoft.CodeAnalysis.CSharp.Scripting.CSharpScript.RunAsync<T>(String)
methods, so you may not find much useful from them.
Runs the C# script.
- Input code to interpret (type
String
)
Runs the C# script asynchronously.
- Input code to interpret (type
String
)
Runs the C# script and throws a bit more detailed (and multilingual) exception on failure.
- Input code to interpret (type
String
)
Microsoft.CodeAnalysis.CSharp.Scripting.ScriptState<dynamic> DbgSharp.ScriptRunner.TryRunAsync(String)
Runs the C# script asynchronously and throws a bit more detailed (and multilingual) exception on failure.
- Input code to interpret (type
String
)