목록typeof (1)
대마법사의 개발 블로그랄까?
C# Default 와 Typeof()
오늘의 노래 : https://www.youtube.com/watch?v=oRg-7iku6OkDefaultDefault 연산자는 특정 데이터 형식의 기본값을 제공한다.값형식, 참조형식 모두 사용가능하다.internal class Class2{ private List list; static void Main(string[] args) { int a = 10; string? b = "Test"; a = default; b = default; Console.WriteLine("a Default = " + a); Console.WriteLine("B Default = " + b); }}결과a Default = 0B ..
너 C# 완벽해?/책읽고 작성하기
2025. 1. 15. 22:03