CSharp examples for Language Basics:Array
Declare IEnumerable via string array
using System.Collections.Generic; using System.ComponentModel; using static System.Linq.Enumerable; class UsingStaticExtensionMethods2 { static void Main() {/*w ww .j a v a 2 s. co m*/ IEnumerable<string> strings = new[] { "a", "b", "c" }; int valid = strings.Count(); // int invalid = Count(strings); } }