C# 기초 – csharpstudy 유튜브 강의 정리
https://www.csharpstudy.com/ https://www.youtube.com/watch?v=NZ0csWCxD3g&list=PLiNvMfa_Y5hfgpgd3hgXdHACCZuIEozjL C# 데이타 타입 C# yield 문 C# 구조체 (struct) C# 클래스 (class) 개념과 사용법 C# 이벤트(event) 활용 사례 C# yield 문 yield return은 데이터를 하나씩 리턴한다. yield break는 메소드를 끝낸다. (break 는 가장 가까운 반복문을 끝낸다.) private void main() { foreach (var score in GetScores()) { Console.WriteLine(score); } } private IEnumerable<int> GetScores() // foreach 를 하나씩 돈다. { int[] scores = new int[] { 10, 20, 30, 40, 50 }; for (int i = 0; i < scores.Length; i++) { if…
Read More