C#
C#
๐ซ ๋ฉ๋ชจ
- Struct ์ธํฐํ์ด์ค ์์
- ์๋ ๊ตฌํ ๋ ๋ฐ๋ณต์๋ IEnumerable < T > ๋ฐ IEnumerator < T > ์ด๋ฉฐ ์ต์ ํ๋ฅผ ์ํด ์ฒซ ๋ฒ์งธ GetEnumerator () ์์ ์์ ์ ๋ฐํํฉ๋๋ค. 2๋ฒ์งธ ์ดํ๋ ์์ ์ newํด ๋ค๋ฅธ ๊ฒ์ ๋๋ ค์ค๋ค.
- .Net 9.0 LINQ ์ฑ๋ฅ ๊ฐ์ ์ฌํญ
string.String(char c, int count)
$"{someVar:N0}"
- Number Comma,$"{someVar:D2}"
- Leading Zero- ์ต๋ํ this ๋ง์ด ์์ฐ๋ ๊ฒ ์ข์ ๋ฏ?
- ๊ทธ๋ฅ ๋์ผํ ๋ณ์ ๋ช ์ด ์๋ ๊ฒ์ด ์ค์ ๋ง๋ค๊ธฐ ์ข์ ๊ฒ ๊ฐ์
- ๋ณ์ ์ด๋ฆ ์ ์ฌํ๊ฒ ์ง์ง ์๊ธฐ. ํท๊ฐ๋ฆฐ๋ค ์ด๊ฑฐ.
- params T[] -> ๋ฐฐ์ด๋ก ๋ฐ์์ ์ฌ์ฉํ ์ ์์, ํจ๊ณผ์ ๋๋ค์ ์ฌ์ฉํ์
params SfxType[] sfxTypes
- enum์์๋
#region
๊ฐ๋ฅ - https://stackoverflow.com/questions/1658557/multiple-initialization-in-c-sharp-for-loop ํ for๋ฌธ ์์ ์ฌ๋ฌ ๋ณ์ ๋ฃ๊ธฐ, ํน์ ํํ ๋ฃ๊ธฐ
์ด ๊ธฐ์ฌ๋ ์ ์๊ถ์์ CC BY 4.0 ๋ผ์ด์ผ์ค๋ฅผ ๋ฐ๋ฆ
๋๋ค.