Table of Contents

Method RegisterCode

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

RegisterCode(string, string[], string)

Register all types declared in the given source files so they can be accessible for code analysis.

public static void RegisterCode(string extension, string[] files, string projectName = null)

Parameters

extension string

Project's default file extension, like ".cs".

files string[]

Files containing source code.

projectName string

Project's name to process.

RegisterCode(string, string, string, string)

Register all types declared in the given source file so they can be accessible for code analysis.

public static void RegisterCode(string extension, string fileName, string text, string projectName = null)

Parameters

extension string

Project's default file extension, like ".cs".

fileName string

File name of the source code.

text string

The source text.

projectName string

Project's name to process.

RegisterCode(IScriptEdit, string, string)

Register all types declared in the given source files so they can be accessible for code analysis.

public static void RegisterCode(this IScriptEdit edit, string fileName, string text)

Parameters

edit IScriptEdit

IScriptEdit that contains the source code.

fileName string

File name of the source code.

text string

Source text.