![]() I think I remember reading somewhere that only the JScript compiler was implemented in the 1.0 version of the framework, and the MSDN documentation of these classes says "Syntax based on. COMPILING CODE CODEThe framework also includes CSharpCodeProvider and JScriptCodeProvider classes, which can be used to compile code written in those languages. If you use it to create an instance of the class you want to use, and hang onto the Type object and your instance, you can let the assembly go out of scope. In this example I keep the assembly in a member variable, but that's not strictly necessary. The demo code adds buttons for creating an instance of the Sample class and accessing a property and method of that instance. We can pass by value if we want just cast the array element back to the right type after calling the function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |