Method RegisterCode
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
extensionstringProject's default file extension, like ".cs".
filesstring[]Files containing source code.
projectNamestringProject'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
extensionstringProject's default file extension, like ".cs".
fileNamestringFile name of the source code.
textstringThe source text.
projectNamestringProject'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
editIScriptEditIScriptEdit that contains the source code.
fileNamestringFile name of the source code.
textstringSource text.