[Mono-list] eval statement

Daniel Morgan danielmorgan@verizon.net
Wed, 21 Jan 2004 20:42:56 -0500


The DataTable, DataRow, DataColumn classes in System.Data can evaluate
expressions.

Take a look at DataColumnTest.cs in
mcs\class\System.Data\Test\System.Data
for examples.

The internal implementation of evaluating expressions in System.Data is
contained within
ExpressionElement.cs

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Gonia Eric -
egonia
Sent: Wednesday, January 21, 2004 12:41 PM
To: 'mono-list@ximian.com'
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  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list