Click or drag to resize

ClassBuilderClassFromString Method (String, String)

Compiles the source code passed and returns the Type with the name className. (Code in C#)

Namespace:  FileHelpers.Dynamic
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public static Type ClassFromString(
	string classStr,
	string className
)

Parameters

classStr
Type: SystemString
The Source Code of the class in C#
className
Type: SystemString
The Name of the Type that must be returned

Return Value

Type: Type
The Type generated by runtime compilation of the class source.
See Also