473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

ICodeCompiler question

OK, I'm resolved to the fact that I need to use ICodeCompiler to implement
my client scripting feature for my C# 2.0 application, since VSA is going
the way of the dodo bird. My question is this: if I declare my class as
'partial', can I compile client-supplied scripts as 'partial' for the same
class into which I want to hook? Let me see if I can make this any
clearer...

I have a class and I want my clients' scripts to have access to the class
methods and properties. Can I simply do this by having the scripts that the
client develops begin with "partial class someclass"? If I compile and load
modules created thusly, will I be able to reference the class that was
compiled in the "usual" fashion? Mainly, I want to allow my clients to be
able to write event handlers and such.

Tim
Nov 17 '05 #1
0 1346

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
2
by: Eric | last post by:
Good morning, I am trying to compile a DLL on the fly using ICodeCompiler. While I am able to accomplish the task if I use a seperate code file along with CompileAssemblyFromFile, however, when...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
1
by: Matt Gertz | last post by:
Phil, Thanks for the notification on this. I'm going to do some investigation on this today & try debugging through the problem, and I'll get back to you either this afternoon or tomorrow...
0
by: Cayze | last post by:
Hello all, I'm trying to use ICodeCompiler and was wondering if there's a way to pass it a project file (*.csproj, *.sln, *.vbproj, etc) to have it rebuild the project. I don't think there is,...
1
by: Marc Eaddy | last post by:
Hi, I'm trying to create an ICodeCompiler using the following code: CodeDomProvider cdp = new Microsoft.MCpp.MCppCodeProvider(); ICodeCompiler icc = cdp.CreateCompiler(); However,...
0
by: =?Utf-8?B?WmlnZ3lTaG9ydA==?= | last post by:
I can compile assemblies (eg using compiler.CompileAssemblyFromFile) and can reference an Interface provided it is linked as a dll and added via parms.ReferencedAssemblies.Add(path_and_name_of_dll)...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.