@{ string[] members = {"Jani", "Hege", "Kai", "Jim"}; int i = Array.IndexOf(members, "Kai")+1; int len = members.Length; string x = members[2-1]; }

Members

@foreach (var person in members) {

@person

}

The number of names in Members are @len

The person at position 2 is @x

Kai is now in position @i