Abc.NCrafts.Quizz.Performance.Questions._019.Answer1.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            _values.Clear();
            _values.AddRange(Enumerable.Range(0, 500));

            // begin
            for (var index = 0; index < _values.Count; )
            {
                if (_values[index] % 10 != 0)
                {
                    _values.RemoveAt(index);
                }
                else
                {
                    index++;
                }
            }
            // end
        }
    }
Answer1