| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- ListView
- string
- .net
- log
- dotNET
- commit
- 코딩테스트
- WPF
- IValueConverter
- Process
- nullable
- Visual Studio
- mysql
- Microsoft
- csharp
- File
- Github
- algorithm
- coding-test
- git
- convert
- tls
- C#
- Binding
- programmers
- windows10
- chashtag
- Coding
- windows
- logging
Archives
- Today
- Total
목록MethodBase (1)
CHashtag
결론부터 알려드리겠습니다. public void MyMethod() { Console.WriteLine(MethodBase.GetCurrentMethod().Name); // output : MyMethod } GetCurrentMethod라는 함수를 사용하면 MethodBase 객체를 얻을 수 있습니다. MethodBase객체에는 다음과 같은 값이 있습니다. 해당 속성은 주로 Logging을 할 때 사용됩니다. 감사합니다.
C#
2021. 1. 11. 16:37