int?
![[C#] Nullable<T>](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcXEX6x%2FbtqBJf1P8R5%2FoaeOcjVkypArU3Qxb5GBB1%2Fimg.png)
[C#] Nullable<T>
1. 핵심 정리 using System; class Program { public static void Main() { // string : reference type string s1 = "Hello"; // 객체 생성 string s2 = null; // 객체 없음. // int : value type int n1 = 10; // 객체 생성 int n2 = ?; // 값이 없음을 표현하고 싶을 땐? } } ① Reference Type => null을 사용하면 객체 없음 상태를 표현할 수 있다. ② Value Type => 값 없음을 표현할 수 없다. ③ Nullable => Value Type에 값 없음을 추가한 것 => Nullable = int + bool => null을 사용할 수 있다. us..