471,349 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

C# as a scripting language?

Hello,

I'm trying to figure out if there is a way to use C# as a scripting
language in my application. The idea is this: give the scripting guy
some events he can register with and execute C# code if they happen,
have him click like a "compile" button to see if there are any errors
in his code.. and if it works load it kind of like a module into your
running code.
Is anything like that possible?

Thanks in advance
Jun 27 '08 #1
3 1063
hi,
I wish the following link could help you. the example in the article show
you how to use it.

Microsoft.CSharp.CSharpCodeProvider in system.dll

reference:
http://msdn2.microsoft.com/en-us/lib...eprovider.aspx
------------------------
rex xiang 向志伟
<ch***********@gmail.comwrote in message
news:77**********************************@b1g2000h sg.googlegroups.com...
Hello,

I'm trying to figure out if there is a way to use C# as a scripting
language in my application. The idea is this: give the scripting guy
some events he can register with and execute C# code if they happen,
have him click like a "compile" button to see if there are any errors
in his code.. and if it works load it kind of like a module into your
running code.
Is anything like that possible?

Thanks in advance
Jun 27 '08 #2
ah sweet, thank you :)
Jun 27 '08 #3
ch***********@googlemail.com schrieb:
ah sweet, thank you :)
You'll still need a way to automatically load your assemblies
(Reflection). However, it is possible and with the given link you are on
the right way.

Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by The_Incubator | last post: by
41 posts views Thread by Richard James | last post: by
9 posts views Thread by Vijai Kalyan | last post: by
80 posts views Thread by Bibby | last post: by
4 posts views Thread by Michael Andersson | last post: by
4 posts views Thread by Gene Jones | last post: by
2 posts views Thread by JosAH | last post: by

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.