1. Thread Pool ์ ํญ์ BackGround Thread ๋ก ๋์ํ๋ค. 2. Name ํ๋๋ฅผ ์ค์ ํ ์ ์๋ค. ( ์ฐ๋ ๋์ Name ํ๋๋ ์ค์ ์ด ํ๋ฒ๋ง ๊ฐ๋ฅ ํ๊ธฐ ๋๋ฌธ ) 3. Block ๋๋ ์ฝ๋๋ฅผ ์ฌ์ฉํ๋ฉด ์ฑ๋ฅ์ด ๋จ์ด์ง๋ค. 4. Thread.CurrentThread.IsThreadPoolThread ์์ฑ์ผ๋ก ์ฐ๋ ๋ ํ์ ์ฌ์ฉํ๋์ง ์ ์ ์๋ค.
read more ...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 ...C# 8.0 Switch Expression
c# 8.0 ์์ switch ํ์ฅ์์ด ์ถ๊ฐ ๋์๋ค. ex) int n = 20; ์ผ๋ฐ์ ์ธ switch ์ ์ฌ์ฉ switch(n) { case 10 : break; default : break; } Switch Expression ์ฌ์ฉ int s = n switch { 10 => 11, 20 => 22, 30 => 33, _=> 100 }; * _ -> default๋ฅผ ๋ปํจ. *Expression ์ด๋ ํ๋์ ๊ฐ์ผ๋ก ๊ณ์ฐ ๋๋์ ( ์ : ๋ฆฌํด์ ํ๊ธฐํ์ง ์์๋ ํ๋์ ๊ฐ์ผ๋ก ์๋ฅผ ๋ค์ด 3 * 5 ๊ฐ์๊ฒ)
read more ...Index & Range
C# 8.0์์์ Index. 1. "^"์ ๊ฐ๋ . (Index fromEnd ์ ๋จ์ถ ํ๊ธฐ๋ฒ) ์๋์ ๋ฐฐ์ด์ด ์๋ค๊ณ ๊ฐ์ ํ์ ๋.. int a = [1,2,3,4,5,6,7]; int b = a[^2]; ^ => ๋ค์์ ๋ถํฐ ์์๋ฅผ ์ผ๋ค. ๋จ ์ด๋๋ ์ ๋ก ๋ฒ ์ด์ค๊ฐ ์๋ ์ฆ ์คํํ๋ฉด b = 6 ์ด ๋์จ๋ค. 2. Index ๊ฐ์ฒด c# 8.0๋ถํฐ๋ Index๋ ๊ฐ๋ ์ด ์๊ฒผ๋ค. ์ญ์ ๊ฐ์ฒด๋ผ ์๋์ ๊ฐ์ด ์ ์ธ์ด ๊ฐ๋ฅํ๋ค Index idx = new Index(2); ex) string a = "abcdefg"; int idx1 = 2; Index idx2 = new Index(2); char c1 = a[idx1]; char c2 = a[idx2]; ๋ ๋ค ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ๋์จ๋ค. c1 = c c2 = c ๊ทธ๋ผ I..
read more ...์ฝ์ค๋ธ ๋ํฐ ์๋์2
๊ฒ์ ์ด๋ฆ : ์ฝ์ค๋ธ ๋ํฐ ์๋์ 2 (Call of Duty World War2) ๊ธฐ์ข : PC ์ถ์ : 2017.11 ํด๋ฆฌ์ด : 2017.11.14 ๊ฒ์์ ํ๋ ์ด ํ์ง ์ผ์ฃผ์ผ๋ง์ ํด๋ฆฌ์ด ํ๋ค. ๊ฒ์ ์๊ฐ์.. ์ญ์ ๋ช ์์ด๋๊น.. ์ํ๋ฅผ ํํธ ๋ณด๋๊ฑฐ ๊ฐ๋ค.. ์ด์ ๋ ์ฌ๊ณจ ๊ฐ์ 2์ฐจ๋์ ์์ฌ์ง๋ง.. ์ผ๊ตญ์ง ์ฒ๋ผ ์ด ์์ฌ๋ ์ธ์ ๋ ๋จนํ๋๊ฑฐ ๊ฐ๋ค. ํ์ง๋ง ์ต์ ํ๋ ๋ฒ๊ทธ, ๋๋ฆฐ ๋ก๋ฉ๋ฑ ์์ฌ์ด๋ถ๋ถ๋ ์๋ค. ๊ทธ๋๋ ์คํ ๋ฆฌ๋ ์ ์ง์ฌ ์ก๊ณ , ์ธ๋ฌผ๊ด๊ณ ๋ฌ์ฌ๋ ์ ํ๊ฑฐ ๊ฐ๋ค. ๋ด๊ฐ ๋๋์ผ์ค๋ผ๋ฉด.. ์ ์ค๋งจ์ ๊ตฌํ๋ฌ ๊ฐ์๊น? ์ ๋ฐ ์ ์์์ ์์๋ค๋ฉด.. ์ด๋ ์ ํ์ ํ๋๋ผ๋ ๋น๋ํ ์ ์๊ฒ ์ง.. ๊ทธ๋๋ ๊ณ ์ฌ๋์ ๋๋์ผ์ค๊ณผ ๊ฐ์ ์ ํ์ ํ์๊ฒ ๊ฐ๋ค.
read more ...