Skip to content

Instantly share code, notes, and snippets.

@al1b
Created May 29, 2019 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save al1b/edcdb927be4e92f276d361992a3e1156 to your computer and use it in GitHub Desktop.
Save al1b/edcdb927be4e92f276d361992a3e1156 to your computer and use it in GitHub Desktop.
RoslynCodeDomProvider CSharpCodeProvider
/// <summary>
/// Creates an instance using the given ICompilerSettings
/// </summary>
/// <param name="compilerSettings"></param>
public CSharpCodeProvider(ICompilerSettings compilerSettings = null) {
_compilerSettings = compilerSettings == null ? CompilationSettingsHelper.CSC2 : compilerSettings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment