I've the following
List<decimal> Prices = new List<decimal>();
Prices.Add(999.99M);
Prices.Add(19.99M);
Prices.Add(2.75M);
Prices.Add(9.99M);
Prices.Add(2.99M);
Prices.Add(2.99M);
Prices.Add(99.99M);
I can use Linq to get the smallest value by
decimal Min = Prices.Min(r => r);
But how can I set the smallest value to 0 in the current list ?
UPDATE
How can I deal with two smallest prices for example 2.99 and 2.99, I'd only want to set 1 to 0