๐ฃ์ธ์ด
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
AllCells : ํค๋ ์ ํฌํจ ๋ชจ๋ ์ ์ ๋๋น๋ฅผ ๋ด์ฉ์ ๋ง๊ฒ ์กฐ์ AllCellsExceptHeader : ํค๋ ์ ์ ์ธ ๋ชจ๋ ์ ์ ๋๋น๋ฅผ ๋ด์ฉ์ ๋ง๊ฒ ์กฐ์ DisplayedCells : ํค๋ ์ ํฌํจ ํ๋ฉด์ ํ์๋ ์ด์ ๋ชจ๋ ์ ๋ด์ฉ์ ๋ง๊ฒ ๋๋น ์กฐ์ DisplayedCellsExceptHeader : ํค๋ ์ ์ ์ธ ํ๋ฉด์ ํ์๋ ์ด์ ๋ชจ๋ ์ ๋ด์ฉ์ ๋ง๊ฒ ๋๋น ์กฐ์ AutoSizeColumnMode ๋๋ AutoSizeRowsMode ์์ ์ค์
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
ํ์ค์นผ ํ๊ธฐ๋ฒ : ๋ชจ๋ ๋จ์ด์ ์ฒซ ๋ฌธ์๋ ๋๋ฌธ์๋ก ํ๊ธฐ ex) BackColor ์นด๋ฉ ํ๊ธฐ๋ฒ : ์ฒซ ๋จ์ด์ ์ฒซ ๋ฌธ์๋ ์๋ฌธ์, ๊ทธ ์ธ ๋จ์ด์ ์ฒซ ๋ฌธ์๋ ๋๋ฌธ์๋ก ํ๊ธฐ ex) backColor ํ์ผ ๋ช : ํ์ค์นผ ํ๊ธฐ๋ฒ ํด๋์ค ๋ช : ํ์ค์นผ ํ๊ธฐ๋ฒ ํจ์ ๋ช : ํ์ค์นผ ํ๊ธฐ๋ฒ ์ธํฐํ์ด์ค : ์ ๋์ฌ I + ํ์ค์นผ ํ๊ธฐ๋ฒ ๋ณ์, ํจ์ ํ๋ผ๋ฏธํฐ : ์นด๋ฉ ํ๊ธฐ๋ฒ ์ ์ญ๋ณ์ : _ ์ฌ์ฉ ์ง์ญ๋ณ์ : _ ์ฌ์ฉ x
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
CallerMemberNameAttribute : ํ์ฌ ๋ฉ์๋๋ฅผ ํธ์ถํ ๋งค์๋ ๋๋ ํ๋กํผํฐ ์ด๋ฆ CallerFilePathAttribute : ํ์ฌ ๋ฉ์๋๊ฐ ํธ์ถ๋ ์์ ํ์ผ ๊ฒฝ๋ก CallerLineNumberAttribute : ํ์ฌ ๋ฉ์๋๊ฐ ํธ์ถ๋ ์์ค ํ์ผ ๋ด์ ํ ๋ฒํธ using System.Runtime.CompilerServices; public static void WriteLine(string message, [CallerFilePath] string file = "", [CallerLineNumber] int line = 0, [CallerMemberName] string member = "") { Console.WriteLine($"{file}(Line:{line}) {member}:..
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
C#์์ ๋ธ๋ฆฌ๊ฒ์ดํธ๋ ์ฝ๋ฐฑ์ ๊ตฌํํ๊ธฐ ์ํด ์ฌ์ฉ๋๋ค. ๋ธ๋ฆฌ๊ฒ์ดํธ๋ ๋ฉ์๋์ ๋ํ ์ฐธ์กฐ์ด๋ค. ๋ธ๋ฆฌ๊ฒ์ดํธ์ ๋ฉ์๋ ์ฃผ์๋ฅผ ํ ๋นํ ํ ๋ธ๋ฆฌ๊ฒ์ดํธ๋ฅผ ํธ์ถํ๋ฉด ๋ธ๋ฆฌ๊ฒ์ดํธ๊ฐ ๋ฉ์๋๋ฅผ ํธ์ถํ๋ค. ๋ธ๋ฆฌ๊ฒ์ดํธ๋ ๋ฉ์๋์ ๋ํ ์ฐธ์กฐ์ด๊ธฐ ๋๋ฌธ์ ๋ฐํ ํ์๊ณผ ๋งค๊ฐ๋ณ์๋ฅผ ๋ช ์ํด์ค์ผํ๋ค. delegate int MyDelegate(int a, int b); ๋ธ๋ฆฌ๊ฒ์ดํธ๋ฅผ ์ ์ธํ ํ์ ๋ธ๋ฆฌ๊ฒ์ดํธ๊ฐ ์ฐธ์กฐํ ๋ฉ์๋๋ฅผ ์ ์ธํ๋ค. ์ด๋ ์ด ๋ฉ์๋๋ค์ ๋ฐํ ํ์๊ณผ ๋งค๊ฐ ๋ณ์๋ ๋ธ๋ฆฌ๊ฒ์ดํธ์ ๋ฐํ ํ์๊ณผ ๋งค๊ฐ๋ณ์๋ฅผ ๋ฐ๋ผ์ผ ํ๋ค. public int Plus(int a, int b) { return a + b; } ์ด์ ์ด ๋ฉ์๋๋ฅผ MyDelegate๊ฐ ์ฐธ์กฐํ๋ฉด ๋๋ค. Calcul c = new Calcul(); MyDelegate Callbac..
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
Sort() : ๋ฐฐ์ด ์ ๋ ฌ BinarySearch() : ์ด์ง ํ์ ์ํ IndexOf() : ํน์ ๋ฐ์ดํฐ์ ์ธ๋ฑ์ค ๋ฐํ TrueForAll() : ๋ชจ๋ ์์๊ฐ ์ง์ ํ ์กฐ๊ฑด์ ๋ถํฉํ๋์ง ์ฌ๋ถ ๋ฐํ FindIndex() : ์กฐ๊ฑด์ ๋ถํฉํ๋ ์ฒซ ๋ฒ์งธ ์์์ ์ธ๋ฑ์ค ๋ฐํ Resize() : ๋ฐฐ์ด ํฌ๊ธฐ ์ฌ์กฐ์ Clear() : ๋ชจ๋ ์์ ์ด๊ธฐํ ForEach() : ๋ชจ๋ ์์์ ๋ํด ๋์ผ ์์ ์ํ GetLength() : ๋ฐฐ์ด์์ ์ง์ ํ ์ฐจ์์ ๊ธธ์ด ๋ฐํ Length : ๋ฐฐ์ด์ ๊ธธ์ด ๋ฐํ Rank : ๋ฐฐ์ด์ ์ฐจ์ ๋ฐํ
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
ํ๋กํผํฐ๋ฅผ ์ด์ฉํ๋ฉด ์๋์ฑ๊ณผ ํธ์์ฑ์ ๋ชจ๋ ๋ง์กฑ์ํฌ ์ ์๋ค. ํ๋กํผํฐ๋ฅผ ์ ์ธํ ๋ ์ ๊ทผํ์ ์, ๋ฐ์ดํฐํ์, ํ๋กํผํฐ ์ด๋ฆ ์์ผ๋ก ์ ์ธํ๋ค. ํ๋กํผํฐ ์ ์ธ ๋ฌธ๋ฒ ์ค get๊ณผ set์ ์ ๊ทผ์๋ผ๊ณ ํ๋ค. get ์ ๊ทผ์๋ ํ๋๋ก๋ถํฐ ๊ฐ์ ์ฝ์ด์จ๋ค. set ์ ๊ทผ์๋ ํ๋์ ๊ฐ์ ํ ๋นํ๋ค. set ์ ๊ทผ์ ์์ ์๋ value๋ ์๋ฌต์ ๋งค๊ฐ ๋ณ์๋ก ๊ฐ์ฃผํ๋ค. set ์ ๊ทผ์๋ ๊ตฌํํ์ง ์๊ณ get ์ ๊ทผ์๋ง ๊ตฌํํ๋ค๋ฉด ํด๋น ํ๋กํผํฐ๋ ์ฐ๊ธฐ ๋ถ๊ฐ ์ฝ๊ธฐ ์ ์ฉ์ด ๋๋ค. private string name; public string Myname { get { return name; } set { name = value; } } ์๋์ ์ฝ๋์ฒ๋ผ ์๋ ํ๋กํผํฐ ๊ตฌํ๋ ๊ฐ๋ฅํ๋ค. public string Myname { get; ..
![](https://tistory1.daumcdn.net/tistory/4446718/skin/images/no-image.jpg)
public : ํด๋์ค ๋ด๋ถ, ์ธ๋ถ ๋ชจ๋ ๊ณณ์์ ์ ๊ทผ ๊ฐ๋ฅ protected : ์์ ํด๋์ค์์ ์ ๊ทผ ๊ฐ๋ฅ, ํด๋์ค ์ธ๋ถ์์ ์ ๊ทผ ๋ถ๊ฐ private : ํด๋์ค ๋ด๋ถ์์๋ง ์ ๊ทผ ๊ฐ๋ฅ internal : ๊ฐ์ ์ด์ ๋ธ๋ฆฌ์ ์๋ ์ฝ๋์์๋ง public์ผ๋ก ์ ๊ทผ ๊ฐ๋ฅ protected internal : ๊ฐ์ ์ด์ ๋ธ๋ฆฌ์ ์๋ ์ฝ๋์์๋ง protected๋ก ์ ๊ทผ ๊ฐ๋ฅ ์ ๊ทผ ํ์ ์๋ก ์์ํ์ง ์์ ํด๋์ค์ ๋ฉค๋ฒ๋ private๋ก ์๋ ์ง์