Click here to Skip to main content
15,439,373 members
Articles / Programming Languages / Javascript

Tagged as


27 bookmarked

Evaluate Expressions from C# using JavaScript's Eval() Function

Rate me:
Please Sign up or sign in to vote.
4.70/5 (13 votes)
5 Dec 2009CPOL2 min read
This article describes how to wrap Eval() in a tiny JScript class, compile it into an assembly and call it from C# to evaluate expressions at runtime.


Daily Counts


Weekly Counts


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior) Phi International
Canada Canada
Grew up in Amsterdam, now living in downtown Vancouver. There are definitely more mountains here.

My first internship was with the first company in the Netherlands to teach C++ ( During this internship I got to know Object Oriented Design, which kept my interest until this day. In the mean time, I have worked for different companies in the Netherlands and Canada. I have done most of my recent work in C#, developing Database/Web/Desktop applications.

I am currently working as a freelance Software Developer for PHI International in Amsterdam.

The CodeProject rocks!

Comments and Discussions