Habanero.Faces.Base.GridLayoutManager.GetFixedAmount C# (CSharp) Метод

GetFixedAmount() приватный Метод

Adds the values in the array provided, as long as the values are above -1. This method is used to add up fixed-height/width items.
private GetFixedAmount ( int arr ) : int
arr int The array of values
Результат int
        private int GetFixedAmount(int[] arr)
        {
            int total = 0;
            for (int i = 0; i < arr.Length; i++)
            {
                int val = arr[i];
                if (val > -1)
                {
                    total += val;
                }
            }
            return total;
        }