람다식과 LinQ기초


람다식과 LinQ기초

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 람다식과LinQ기초 { class Program { public static int Count(int[]array,int num) { //이 메서드는 배열이 고정 되어 있다. 다른 배열에도 동일하게 사용하기 위해서 //배열을 인수로 받아들이도록 변경을 해보겠습니다. //var numbers = new [] { 5, 3, 9, 6, 7, 5, 8, 1, 0, 5, 10, 4 }; //int[] vs = new int[] {1,2,3,4,5 }; int count = 0; foreach..


원문링크 : 람다식과 LinQ기초