using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study12 { class App { //생성자 public App() { this.LoadFile((str) => { Console.WriteLine(str); //hello world! }); //람다문 (익명메서드) 매개변수가 1개 있는 익명 메서드 //반환값이 없음으로 Action 대리자를 사용하자 //Action 대리자는 매개변수를 0~17개 지원 //Action //일반화를 먼저 다시 복습해야겠다 } private void LoadFile(Actioncallback) {..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study10 { internal class App { public App() { //제너릭 List연습 ,stack,Queue,dictionaly //List인스턴스 생성 //Add //Contains //단일 요소값 가져오기 //Remove //Count //for //foreach //Qeue인스턴스생성 //Add //단일요소 가져오기 peek Dequeue //1.Queue인스턴스 만들기 Queue que=new Queue(); //Queue 인스턴스를 먼저 만들고 Weapo..
# //제너릭 List연습 ,stack,Queue,dictionaly //List인스턴스 생성 //Add //Contains //단일 요소값 가져오기 //Remove //Count //for //foreach //Qeue인스턴스생성 //Add //단일요소 가져오기 peek Dequeue using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study10 { internal class App { public App() { //제너릭 List연습 ,stack,Queue,dictionaly //List인스턴스 생성 //Add //Contai..
1.우측 솔루션 탐색기에서 프로잭트(test2) 우클릭 후 App.cs생성 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test2 { class Program { static void Main(string[] args) { new App(); } } } using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test2 { class App { //생성자 pub..