Click or drag to resize

ProjectCreateCodeUnit Method (String, String)

Create a new CodeUnit for a code fragment, and add it to the Project.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public CodeUnit CreateCodeUnit(
	string codeFragment,
	string fileName
)

Parameters

codeFragment
Type: SystemString
The code fragment.
fileName
Type: SystemString
The file name.

Return Value

Type: CodeUnit
The new CodeUnit object.
See Also