I checked the performance of a simple method which just get the last element of an array. I found it is almost 4 times slower than the direct indexer. Any way to inline the method to get better performance?
int last(this int[] a)
{
return a[a.length-1];
}