You can download nant source code (nant.sf.net) and look at expression evaluator there. It's quite well separated so it can be used in other places.
Jarek ----- Original Message ----- From: "Gonia Eric - egonia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 21, 2004 6:41 PM Subject: [Mono-list] eval statement > Does anyone have a recommendation on how I can create an eval method similar > to perl's or php's. > > I would like to take a string like "(7-1)/2" and pass it to a method that > would return the value of the mathematical operation. > > Thanks for any help you can provide, > Eric > > > ********************************************************************** > The information contained in this communication is > confidential, is intended only for the use of the recipient > named above, and may be legally privileged. > If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication is strictly > prohibited. > If you have received this communication in error, > please re-send this communication to the sender and > delete the original message or any copy of it from your > computer system. Thank You. > > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
