I get error
"'Index was outside the bounds of the array"
on this line string Open = array[0].ToString(); when array is empty.
I used "if" statement to see if it can be by-passed when array is empty.
However, why am I still getting this error? How can I by-pass/fix it?
if (array != null || array.Length != 0)
{
int c = array.Count();
string Open = array[0].ToString(); <--- ERROR
}