Table of Contents

Method RegisterCode

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

RegisterCode(string, string, ProjectId)

When implemented by a class, makes types declared in given source file accessible for code analysis.

bool RegisterCode(string fileName, string text, ProjectId projectId = null)

Parameters

fileName string

File name of the source code.

text string

The source text.

projectId ProjectId

Specifies project to add a file to.

Returns

bool

True if text was successfully added.