© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
Cracker

❔ Evaluating C# Expressions At Runtime

I am looking alternative ways to evaluate C# expression at runtime. I have used
Roslyn Scripting API CSharpScript.RunAsync
Roslyn Scripting API CSharpScript.RunAsync
but as mentioned github issues, its not designed to be called continuously because it keep creating new assembly in memory and not unloaded, causes memory leak (https://github.com/dotnet/roslyn/issues/41722)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Lambda expressions in C#
C#CC# / help
3y ago
Why is this Linq.Expressions.Expression is evaluating to NULL?
C#CC# / help
2y ago
❔ compile at runtime
C#CC# / help
3y ago
❔ generate WASM at runtime
C#CC# / help
3y ago