Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • .net
  • c#
  • errors

Validate C# syntax with C#

Aug 9, 2011 See the question and my original answer on StackOverflow

You'll have to cookup some compilable C# code (using CodeDom or just adding manual snippets around what your users will manually code), and then compile it, as described here: How to programmatically compile code using C# compiler

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms