Count method (with integers)
Description
The Count method returns the number of elements in sequence.
Sample
This sample returns the number of elements in a list.
var data := List<int>{} { 5, 3, 1, 2, 4 }
var result := data:Count()
Console.WriteLine(result)
Output
5
Complete sample
using System
using System.Linq
using System.Collections.Generic
procedure Execute() as void strict
var data := List<int>{} { 5, 3, 1, 2, 4 }
var result := data:Count()
Console.WriteLine(result)
return