C# 8.0 ๊ธฐ๋ฅ์ด๋ผ๋ค
์ฌ์ง์ด ๋ ๋น ๋ฅด๋ค๊ณ ํจ
arr[0..] ์๊ฒ๋ ๋๋ฌด์ ๊ธฐํจ
ในใ ๊ฐ์ข์
var copy = array[0..5] // ๋ฐฐ์ด ์ฌ๋ผ์ด์ฑ (helloworld -> hello) var copy = array[..] // ์ฌ๋ผ์ด์ฑ ์ด์ฉ ๋ฐฐ์ด ๋ณต์ฌ var takeLast = array[^1] // ์ญ์์ธ๋ฑ์ค var component ??= GetComponent<..> // component๊ฐ null์ธ๊ฒฝ์ฐ null ๋ณํฉ ํ ๋น
int A = (0___0 ); // ๊ท์ฌ์ int B = ( 0______0); // ๋ ๊ท์ฌ์ A == B // true (์ธ๋ฐ์์)
arr[0..] ์๊ฒ๋ ๋๋ฌด์ ๊ธฐํจ
ในใ ๊ฐ์ข์
var copy = array[0..5] // ๋ฐฐ์ด ์ฌ๋ผ์ด์ฑ (helloworld -> hello) var copy = array[..] // ์ฌ๋ผ์ด์ฑ ์ด์ฉ ๋ฐฐ์ด ๋ณต์ฌ var takeLast = array[^1] // ์ญ์์ธ๋ฑ์ค var component ??= GetComponent<..> // component๊ฐ null์ธ๊ฒฝ์ฐ null ๋ณํฉ ํ ๋น
int A = (0___0 ); // ๊ท์ฌ์ int B = ( 0______0); // ๋ ๊ท์ฌ์ A == B // true (์ธ๋ฐ์์)