Habanero.Faces.Base.GridLayoutManager.GetNumVariableEntries C# (CSharp) Method

GetNumVariableEntries() private method

Counts the number of items in the array provided that have a value of -1. This method is used to count the number of rows or columns that have not been assigned a fixed width/height
private GetNumVariableEntries ( int arr ) : int
arr int The array of sizes
return int
        private int GetNumVariableEntries(int[] arr)
        {
            int num = 0;
            for (int i = 0; i < arr.Length; i++)
            {
                int val = arr[i];
                if (val == -1)
                {
                    num++;
                }
            }
            return num;
        }