[stringtemplate-interest] c# Sum Question
    Michele Minorello [PayOff.it] 
    info at payoff.it
       
    Tue Sep  4 06:34:14 PDT 2007
    
    
  
There is a way to sum or multiply attributes values?
1.
public class Products{
// code
    public decimal Price { get { return price ;} }
    public decimal Discount{ get { return discount; } }
    public decimal Quantity{ get { return quantity; } }
}
2.
public void generateBody(StringTemplate bodyST) {
        Products[] products = Products(100, 10, 4); 
        bodyST.SetAttribute("products", products);
    }
3.
The template I want to create:
Real price: $products.Price - products.Discount* products.Quantity$<br> other [...]
Regards,
Michele.
    
    
More information about the stringtemplate-interest
mailing list