일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- DFS
- E-P1
- keras
- RNN
- Splunk
- index
- pip
- dataframe
- SciPy
- Lotto
- mariadb
- Series
- synology
- install
- GT-S80
- SPL
- LSTM
- 삼성소프트웨어멤버십
- GitHub
- Numpy
- imread
- javascript
- mean
- 알고리즘
- ipad
- Python
- pandas
- pycharm
- CNN
- Button
Archives
- Today
- Total
잠토의 잠망경
[Visual Studio] DebuggerDisplay 사용법 본문
참고
0. 정리
[DebuggerDisplay("{Title, nq}")] // nq: (no quotes) pic2
[DebuggerDisplay("Title:{Title}, Big Id ? {Id>5}")] // pic3
[DebuggerDisplay("{MyDebuggerDisplay(), nq}")] // pic5
1. 상세
1) 기본 1
[DebuggerDisplay("{Title, nq}")] // nq: (no quotes) pic2
public class Class1
{
private String MyDebuggerDisplay()
{
return String.Format("Title:{0}, Id? {1}", Title, Id > 5);
}
public long Id { get; set; }
public String Title { get; set; }
}
변경 전
변경 후
2) 기본 2
[DebuggerDisplay("Title:{Title}, Big Id ? {Id>5}")] pic3
public class Class1
{
private String MyDebuggerDisplay()
{
return String.Format("Title:{0}, Id? {1}", Title, Id > 5);
}
public long Id { get; set; }
public String Title { get; set; }
}
변경 후
3) 기본 3
//[DebuggerDisplay("Title: {Title}, Big Id?{If(Id>5, true, false)}")] pic4
[DebuggerDisplay("{MyDebuggerDisplay(), nq}")] // pic5
public class Class1
{
private String MyDebuggerDisplay()
{
return String.Format("Title:{0}, Id? {1}", Title, Id > 5);
}
public long Id { get; set; }
public String Title { get; set; }
}
변경 전
변경 후
Comments