C# code to find the count items of array

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 533
C# code to find the count items of array

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNFPractice
{
class Program
{
public static void Main(string[] args)
{
string[] dnf = new string[9];
int result = dnf.Count();
Console.WriteLine("Result {0}", result);
Console.ReadLine();
}
}
}



Output
9

Thanks
Amatya

Comments or Responses

Login to post response