Click or drag to resize

CodeUnit Constructor (String, String, Project, String)

Create a new CodeUnit with the specified file name (or text source) and parent Project.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public CodeUnit(
	string fileName,
	string code,
	Project project,
	string defaultEncoding = null
)

Parameters

fileName
Type: SystemString
The file name (and path), or name for the code fragment.
code
Type: SystemString
The optional fragment of code, if not loading from the file.
project
Type: Nova.CodeDOMProject
The parent project.
defaultEncoding (Optional)
Type: SystemString
Default encoding (defaults to UTF8 if null).
See Also