Table of Contents

Method RegisterCode

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

RegisterCode(string, string, ProjectId)

Makes types declared in given source file accessible for code analysis.

public 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.