Cannot apply indexing with [] to an expression of type 'void'
Ошибка Cannot apply indexing with [] to an expression of type 'void'
public static bool Check(int x, int y, int z, int a, int b)
{
return Array.Sort(new int[]{x, y, z})[0] < Math.Min(a,b) && Array.Sort(new int[]{x, y, z})[1] < Math.Max(a,b) ;
}