Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save josephwoodward/df212f68f40f835bba17cbba12c45848 to your computer and use it in GitHub Desktop.
Save josephwoodward/df212f68f40f835bba17cbba12c45848 to your computer and use it in GitHub Desktop.
Roslyn.cs
public static void ParseMyCode(string code)
{
var sourceLanguage = new CSharpLanguage();
SyntaxTree syntaxTree = sourceLanguage.ParseText(code, SourceCodeKind.Regular);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment