C# program to counts number of items in the collection

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 190
C# program to counts number of items in the collection
IEnumerable<string> dnfItems = new List<string> { "Dot", "Net", "Funda" };
int dnfCount = dnfItems.Count();



Result
dnfCount 3

Comments or Responses

Login to post response