Пример #1
0
        public long LightListForSpan()
        {
            long sum  = 0;
            var  span = lightlist_.AsSpan();

            for (int i = 0; i < span.Length; i++)
            {
                sum += span[i];
            }

            return(sum);
        }