Visual Studio自定义调试窗体两个小技巧
2010-10-09 08:16:07 来源:WEB开发网下面我将通过一个例子叙述如何使用DebuggerBrowsable 和DebuggerBrowsableState。开始之前,看下面这段代码:
01 class Program
02 {
03 static void Main(string[] args)
04 {
05 List student = new List();
06 student.Add(new Student { Roll = 1, Name = "Abhijit", Marks = 87, Addresses = new Address { Address1 = "add1", Address2 = "add2" } });
07 student.Add(new Student { Roll = 2, Name = "Abhishek", Marks = 41, Addresses = new Address { Address1 = "add3", Address2 = "add4" } });
08 student.Add(new Student { Roll = 3, Name = "Rahul", Marks = 67, Addresses = new Address { Address1 = "add5", Address2 = "" } });
09 student.Add(new Student { Roll = 4, Name = "Sunil", Marks = 91, Addresses = new Address { Address1 = "add11", Address2 = "add122" } });
10 student.Add(new Student { Roll = 5, Name = "Atul", Marks = 71, Addresses = new Address { Address1 = "add12", Address2 = "add222" } });
11 student.Add(new Student { Roll = 6, Name = "Kunal", Marks = 71, Addresses = new Address { Address1 = "add12", Address2 = "add222" } });
12 }
13 ///
14 /// Student Class
15 ///
16
17 class Student
18 {
19 public int Roll { get; set; }
20 public string Name { get; set; }
21 public int Marks { get; set; }
22 public Address Addresses { get; set; }
23 }
24
25 ///
26 /// Address of Students
27 ///
28 class Address
29 {
30
31 public string Address1 { get; set; }
32
33 public string Address2 { get; set; }
34 }
35
36 }
- ››Visual Studio自定义调试窗体两个小技巧
- ››Visual Studio 2005 Team Edition for Database P...
- ››Visual C#两分钟搭建BHO IE钩子
- ››Visual C++优化对大型数据集合的并发访问
- ››VISUAL C++中的OCX控件的使用方法
- ››Visual C++实现视频图像处理技术
- ››Visual C++制作一个Sniffer实例
- ››Visual Studio 2010 中文试用版全面提供下载
- ››Visual C++剪贴板操作不完全攻略
- ››Visual C++编程实现摄像头视频捕捉
- ››Visual C++ 6.0 API函数操作技巧集
- ››Visual C++中的结构异常处理
更多精彩
赞助商链接