length of an list C# code example Example: c# how to get length of string list list.Length // list represents the name of your list