[SOLVED] List.Last() bug
Posted: Sun Jan 10, 2016 6:35 am
Hey guys,
I defined a proper class (in this example MyOwnClass) where i put instances of it into a list:
List<MyOwnClass> liste = new List<MyOwnClass>();
After putting some objects into it, i wanted to access the last of it by liste.Last(); In C# it works fine, but JavaScript throw an exception, that this method is unknow. So i tried liste[liste.Count-1] and it worked.
I defined a proper class (in this example MyOwnClass) where i put instances of it into a list:
List<MyOwnClass> liste = new List<MyOwnClass>();
After putting some objects into it, i wanted to access the last of it by liste.Last(); In C# it works fine, but JavaScript throw an exception, that this method is unknow. So i tried liste[liste.Count-1] and it worked.