프로그래밍/C# 썸네일형 리스트형 [C#] 물음표 2개(??) 연산자 [C#] 물음표 2개(??) 연산자 A ?? B A값이 null이면, B값을 선택. A값이 null이 아니면, A값을 선택하여 대입해주는 연산자입니다. 아래 직접 만든 예제소스에서 출력결과를 확인바랍니다. - 소스1234567891011121314151617using System;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { string data1 = null; string data2 = "This is data2"; string output = "This is output"; Console.WriteLine(data1 ?? output); Console.WriteLine(data2 ?? output); }.. 더보기 [C#] bool Boolean, string String 차이 [C#] bool Boolean, string String 차이 Microsoft 공식 사이트에 아래와 같이 표현되어있네요. The following table shows the keywords for built-in C# types, which are aliases of predefined types in the System namespace. 결론 : alias 인걸로..Microsoft 공식사이트 참조 주소 : https://msdn.microsoft.com/en-us/library/ya5y69ds(v=vs.110).aspx 더보기 이전 1 2 3 다음