I have:
List<MyStruct> MyList = new List<MyStruct>();
// Here i do my logic and fill MyList
int max_price = ??? //How i can found max price in MyList
Struct MyStruct
{
public int Price;
public string Name;
}
P.S - Not foreach/for loop
I`m can found with foreach/for loop - but maybe List exist better method
Thanks
And how i Can do SUM for All Prices in List???