Table of Contents

Method SetFileNameAndProject

Namespace
Alternet.Editor.Roslyn
Assembly
Alternet.Editor.Roslyn.v10.dll

SetFileNameAndProject(IScriptEdit, string, string)

Updates name of the file and project and reparses editor's text.

public static void SetFileNameAndProject(this IScriptEdit edit, string fileName, string projectName)

Parameters

edit IScriptEdit

IScriptEdit that contains source code to process.

fileName string

New file name.

projectName string

Optional project name.