C#13 C# event 대리자 1234567891011121314151617181920212223242526272829303132using System.Collections;using System.Collections.Generic;using System.Data;using UnityEngine; //1.대리자를 선언한다public delegate void EventHandler(string message); public class Test{ //2. 대리자 타입의 변수를 선언한다. public event EventHandler somthingHappened; public Test() { //3. 객체를 생성하고 참조할 메서드를 연결한다. this.somthingHappened += new EventHandler(Test.Myhand.. 2020. 5. 15. C# Dictionary 사전 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071using System;using System.Collections.Generic;using System.Linq;using System.Security.AccessControl;using System.Text;using System.Threading.Tasks; namespace Review_003{ class App { public App() { // 리스트는 List 1가지로 이루어져 있지만 // 사전은 Dictionary 2가지로 이루어져 있습니다. // Dict.. 2020. 5. 13. C# Queue 큐와 Stack 스택 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081using System;using System.Collections.Generic;using System.Linq;using System.Security.AccessControl;using System.Text;using System.Threading.Tasks; namespace Review_003{ class App { public App() { //Queue 는 먼저 추가된 데이터가 먼저 나오는 자료구조이다 Queue food; .. 2020. 5. 13. C# 리스트 List<> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namesp.. 2020. 5. 13. 이전 1 2 3 4 다음