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 ...2017 ์ธ๋ฆฌ์ผ ์๋ฐ ํ๋ฆฌ๋ฏธ์
์๋ ๋ด์ฉ์ ํ์ฌ ์ปจ๋ฒ๋ฐ์ค ์ ๋ฆฌ๊ธ์ ํํ ๋ด์ฉ. ์ธ๋ฆฌ์ผ ์์ง 4 ์ ฐ์ด๋, ๋ ๊น์ด ์ดํดํ๊ธฐ ์ ฐ์ด๋ ์ธ๋ฆฌ์ผ์ ์ ฐ์ด๋๋ USH(Unreal Shader Headers)์ USF(Unreal Shader Files)๋ก ๊ตฌ์ฑ๋จ HLSL ์ฝ๋๋ก ์์ฑ๋๋ USF๋ FShaderType์ผ๋ก ๊ด๋ฆฌ๋จ Global / Material / MeshMaterial 3๊ฐ์ง ํ์ ์ด ์กด์ฌํจ FShaderType์ด ์ปดํ์ผ๋์ด FShader ์ ฐ์ด๋ ์ธ์คํด์ค๊ฐ ๋จ ๋ฉ์ํน์ฑ์ VertexFactory๋ฅผ ํตํด ์์ฑ๋๋๋ฐ, ํ์ฌ๋ ์ปค์คํฐ๋ง์ด์ง ๊ฐ๋ฅํ ์ธํฐํ์ด์ค๋ฅผ ์ ๊ณตํ์ง ์์ ๋จธํฐ๋ฆฌ์ผ Material์ ๊ฐ ๋ ธ๋๋ค์ด ๋ฒ์ญ๋๋ฉด์ ๋ ๋ฆฝ๋ usf ์ฝ๋๋ก ์ปดํ์ผ๋จ ์ปค์คํ ๋ ธ๋๋ HLSL์ฝ๋๋ฅผ ์ง์ ์์ฑํ ์ ์๋ ๋ ธ๋์ง๋ง, ์ฝ๋์ต์ ํ๊ฐ ์ํ๋์ง ๋ชปํ..
read more ...