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
stringFile name of the source code.
text
stringThe source text.
projectId
ProjectIdSpecifies project to add a file to.
Returns
- bool
True if text was successfully added.