By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,897 Members | 1,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,897 IT Pros & Developers. It's quick & easy.

doest C# always have to be compiled or is there a way to run C# on the fly?

P: n/a
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.

thx in advance
Jul 15 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Jul 15, 9:10*am, "Richard" <richard...@hotmail.comwrote:
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
C# always has to be compiled, but there are classes available to let
you compile extra code into an assembly while your program is running.
See Snippy for a simple example of this: http://csharpindepth.com/Downloads..aspx

Jon
Jul 15 '08 #2

P: n/a
TAB
Hi

Try this one, Mini C# Lab. Very nice to have for just checking something.

http://www.codeplex.com/minicsharpla...eleaseId=15109

"Richard" <ri********@hotmail.comskrev i meddelandet
news:#w**************@TK2MSFTNGP03.phx.gbl...
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.

thx in advance
Jul 15 '08 #3

P: n/a
Richard wrote:
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
In practice C# is a compiled language.

In theory it is possible to write a C# interpreter and
a few attempts can be found via Google:

http://www.codeproject.com/KB/cs/csi.aspx
http://www.devhood.com/tools/tool_de...px?tool_id=641

In the real word you will pick another language for
interpretation.

Arne
Jul 16 '08 #4

P: n/a
TAB wrote:
"Richard" <ri********@hotmail.comskrev i meddelandet
news:#w**************@TK2MSFTNGP03.phx.gbl...
>I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
Try this one, Mini C# Lab. Very nice to have for just checking something.

http://www.codeplex.com/minicsharpla...eleaseId=15109
http://www.codeplex.com/minicsharplab shows "build succeeded" in the
screen dump so I will assume that it compile !

Arne
Jul 16 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.