What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-22 20:51:22
how to evaluate code in c#
//Unfortanatly you cant because c# isnt a Dynamic language //but you can use the Roslyn scripting API // add NuGet package 'Microsoft.CodeAnalysis.Scripting' using Microsoft.CodeAnalysis.CSharp.Scripting; await CSharpScript.EvaluateAsync("System.Mat... Add solution -
C# 2021-10-27 09:08:10
c# compile code at runtime
using System.CodeDom.Compiler; CSharpCodeProvider codeProvider = new CSharpCodeProvider(); CompilerParameters myParameters = new CompilerParameters(); myParameters.GenerateExecutable = false; myParameters.OutputAssembly = @"C:\assembly.dll"; Co... Add solution