0

How to get minimum value?

ArrayList arrKey = new ArrayList();
                    double v;
                    double min;
 foreach (string subKey in sortList4.Keys)
                    {                                              
                        foreach(string mee in arrKey)
                        {                           
                            sortList5.Add(mee,1);
                            if(sortList3.ContainsKey(mee))
                            {
                              sortList3.TryGetValue(mee, out v);                              
                                if(v>min)
                                {
                                   //what should do at here?
                                }
                            }}}
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by leo88
0

You didnt even set the min value until here. It is still 0 (or not even that, because you didnt initialize it). So you cannot compare it (if(v > min)!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.