Answer the question
In order to leave comments, you need to log in
System.Collection.Generic.List does not contain a definition for "Max" WAT???
Bullshit, bullshit and more bullshit!!!
I have a bomb.
There is a method returning List.
List<Appartament> objs = GetObjects();
if(objs.Count() > 0)
{
floors = objs.Max(y => y.Floor);
}
List<Appartament> objs = GetObjects(Buildings[index]);
floors = objs.Max(y => y.Floor);
floors = objs.Max("Floor");
for(int i = 0; i < obj.Count; i++)
{
if(objs[i].Floor > floors)
{
floors = objs[i].Floor;
}
if(objs[i].Section > sections)
{
sections = objs[i].Section;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question