[C#] 현재 method 및 class 정보 얻기
C#에서 logging 등의 이유로 현재 실행중인 method나 class의 이름과 같은 정보가 필요할때 `System.Reflection`나 `System.Diagnostics` 네임스페이스의 기능들을 사용할 수 있다. - System.Reflection - 런타임에 어셈블리, type 및 member에 대한 메타데이터 접근 기능 제공 - 주요 클래스 : Assembly, Type, MethodInfo - System.Diagnostics - 런타임에 application을 모니터링하고 디버깅할 수 있는 기능 제공 - 주요 클래스 : Process, StackTrace, StackFrame, Debug 예를들어 로그 찍을때 - 현재 class명 : `MethodBase.GetCurrentMethod()..
Programming/Languages
2023. 3. 1. 15:25
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- firestore
- initialize
- github
- 싱글톤
- RuntimeInitializeOnLoadMethod
- framework
- vscode
- 유니티
- unity
- Debug
- Scraping
- 코루틴
- Singleton
- logging
- Addressables
- 닷넷
- git
- 비동기
- Python
- Custom Package
- selenium
- coroutine
- .net
- VS2022
- Visual Studio Code
- C#
- await
- async
- gcp
- 환경설정
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함