분류 전체보기
-
03/17 Dictionary 변수 선언, 인스턴스 생성, 값 할당, 출력 복습C#/수업내용 2021. 3. 17. 10:19
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { public class A..
-
03/17 List<T> 변수 선언, 인스턴스 생성, 값 할당, 출력 복습C#/수업내용 2021. 3. 17. 10:09
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { public class A..
-
03/17 배열 변수 선언, 인스턴스 생성, 값 할당, 출력 복습C#/수업내용 2021. 3. 17. 10:02
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study06 { public class A..
-
03/16 수업내용 메모C#/수업내용 2021. 3. 17. 09:39
2021/03/16 객체 생성 배열선언하고 생성 배열에 요소 추가 배열에 특정 요소 출력 배열에 모든 요소 출력 배열의 요소를 검색 배열의 요소를 제거 역직렬화 ArrayList 필요에 따라 동적으로 변화하는 배열 Add() 리스트에 끝부분에 추가 제너릭 클래스 T : 형식 매개변수 캐스팅 또는 박싱작업에 대한 비용이나 위험을 발생하지 않음 일반화 제너릭 리스트 클래스(제너릭 클래스)List 개체를 그룹화 하는 방법 1.컬렉션 2.배열 컬렉션 관련 개체의 그룹화하여 관리할 때 사용, 동적으로 확장되거나 축소 배열 고정적 List Dictionary 검색이 빠름, 항목은 값과 키로 이루어짐, KeyValuePair 매개변수는 고유한 것 먼저 Dictionary가 검색이 빠른 이유 해시 함수
-
03/16 컬렉션을 이용 예제C#/수업과제 2021. 3. 16. 18:25
1. Dictionary를 사용하여 던파 세라샵의 아이템 요소를 추가 Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study04 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text;..
-
03/16 List<T> 를사용한 인벤토리 제작 연습C#/수업내용 2021. 3. 16. 16:23
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study04 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespac..
-
03/16 제너릭, List<T>, 컬렉션 연습C#/수업내용 2021. 3. 16. 12:48
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study04 { class Program { static void Main(string[] args) { Console.WriteLine("Main"); new App(); } } } App.cs using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespac..
-
03/16 배열 선언, 생성, 요소 삭제 연습C#/수업내용 2021. 3. 16. 11:23
Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study04 { class Program { static void Main(string[] args) { new App(); } } } App.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study04 { public class App { public App() { //Fruit..