SyntaxExtensions.

Save(CompilationUnitSyntax, string, Action<OptionSet>) Method

Summary

Save CompilationUnitSyntax to the specified outputPath.

This method uses AdhocWorkspace internally. Specify optionConfigurer if you want to change formatting settings.

Namespace
Ponet
Containing Type
SyntaxExtensions

Syntax

public static void Save(this CompilationUnitSyntax compilationUnitSyntax, string outputPath, Action<OptionSet> optionConfigurer = null)

Parameters

Name Type Description
compilationUnitSyntax CompilationUnitSyntax
outputPath string
optionConfigurer Action<OptionSet>

Return Value

Type Description
void