c# - Construct and evaluate an equation in .net -


i'm trying come way have wcf web service construct equation can passed client, evaluate equation plugging numbers appropriate locations.

we have form has numerous types of fields, of used calculate section subtotals, , final total. we're trying keep soa practices, don't want javascript or ui c# make decisions how calculations should done, want try avoid having hit web service every single time field on form changes. we're trying come way have calculation equation still dictated web service, provided client in such way can evaluated , have appropriate properties plugged it. can use javascript eval() this.

the other complication may have 3rd parties choose have calculations handled web service, pass request object , let determine amounts every time. our thoughts have second operation contract utilize first determine appropriate equation, , evaluate it, similar how our client ui code would. thinking of having equation kind of array include arithmetic enumerations between property names serialized if want, whole thing still work in progress, , wanted put out there on see if opinions.

thanks in advance advice/suggestions/criticism may able provide.


Comments