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
Syntaxpublic static Type ClassFromString(
string classStr,
string className
)
Public Shared Function ClassFromString (
classStr As String,
className As String
) As Type
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:
TypeThe Type generated by runtime compilation of the class source.
See Also