private static float GetMethodForIndex(int i) { float length; if (i % 2 == 1) { length = 8; } else { length = 4; } return length; }