Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all
are there built in function to select the minimum number of a list ?
in C#
Posted
Comments
Sergey Alexandrovich Kryukov 1-Jan-12 21:11pm    
What is it supposed to mean? What do you mean by "list"? By "select"?
--SA

Try the following (assuming the data type in the list has an IComparable interface) :
C#
var min= list.Sort()[0];
 
Share this answer
 
There is no such thing; nothing like that is needed, ever; the question makes no sense at all.

—SA
 
Share this answer
 
v3
Comments
Mehdi Gholam 1-Jan-12 23:57pm    
Happy new year Sergey, I believe the OP was referring to something like my answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900