luce in altisBLUE SKY

category Photo

Blog


New Syntax in C# 8.0

C# 8.0 에서 바뀐점 1. Defalut Interface 가 생김 interface Test { void DefalutFunc() { ..... } } 2. Using 개선 using 블럭 사용을 개선하여 아래와 같이 사용이 가능하다 public static void Test { using FileSystem test = new FileSystem("text.txt",FileMode.CreateNew); } // test Dispose 3. Nullable Reference #nullable enable : 참조 타입 변수를 null 을 대입하면 경고를 발생시킨다. (#nullable disable : 사용안함) 4. Null 병합 할당자 c# 6.0 null 병합 연산자 string s2 = s1..

read more ...