Property | Type | Description | |
---|---|---|---|
CodeProvider | CodeDomProvider | ||
CompilerParameters |
Method | Description | |
---|---|---|
AddReferencedAssembly ( String assemblyFullName ) : void | ||
AddUsingNamespace ( String name ) : void | ||
ClearReferencedAsseblies ( ) : void | ||
ClearUsings ( ) : void | ||
CompileCSharpMethod ( String code, |
Creates a C# Method that can be called from the specified code
|
|
CompileCSharpMethodBatch ( IEnumerable |
This method is not intended as a generic way to compile CSHARP code, it is highly coupled with the InspectorManager.
|
|
RunCSharpLine ( String line ) : void |
Compiles and run the passed C# Code without returning results. Parameters can be accesed using the notation "(type)p[i]" where type is the Type of the passed parameter in the i direction. We tryied to make this method with a generic parameter so it wouldn't generate garbage when dealing with Value Types, but the Invoke method will return an Object and garbage would have been still generated.
|
|
RunCSharpLineAndReturnValue ( String line ) : Object |
Compiles and run the passed C# Code. Returns the value of the line.
|
Method | Description | |
---|---|---|
ReflectionHelper ( ) : System |
public static AddReferencedAssembly ( String assemblyFullName ) : void | ||
assemblyFullName | String | |
return | void |
public static AddUsingNamespace ( String name ) : void | ||
name | String | |
return | void |
public static ClearReferencedAsseblies ( ) : void | ||
return | void |
public static CompileCSharpMethod ( String code, |
||
code | String | |
returnType | Set it to null if the method should return void. | |
return |
public static CompileCSharpMethodBatch ( IEnumerable |
||
codes | IEnumerable |
|
returnTypes | IEnumerable |
|
return | List |
public static RunCSharpLine ( String line ) : void | ||
line | String | |
return | void |
public static RunCSharpLineAndReturnValue ( String line ) : Object | ||
line | String | |
return | Object |
public static CodeDomProvider CodeProvider | ||
return | CodeDomProvider |