c# list int get first element code example Example: c# first item i list var first_item = list.First();