非类型化的DataSet的构建及应用
DataSet(数据集)就像一个数据库样,可以很方便的存入数据表,也可以很方便的修改.增加或删除并可以把修改后的数据传回相关的数据库.DataSet与数据库相比,可能无法存放那么多的数据,也可能不方便查询,但可以在脱机环境中很好的工作.
跟DataSet一些使用的一般会涉及到的其它的类有,DataTable,DataColumn,DataRow,DataRelation等
[1]DataTable:数据表,可以存放一张数据表
[2]DataColumn:表示数据表中的一个列属性
[3]DataRow:表示数据表中的一条数据记录
[4]DataRelation:表示数据表之间的关系( 1:1,1:n,n:m)
[5]ForeignKeyConstraint:外键约束
下面以一个简单的测试程序来说明几个类对象之间的关系
程序代码:
跟DataSet一些使用的一般会涉及到的其它的类有,DataTable,DataColumn,DataRow,DataRelation等
[1]DataTable:数据表,可以存放一张数据表
[2]DataColumn:表示数据表中的一个列属性
[3]DataRow:表示数据表中的一条数据记录
[4]DataRelation:表示数据表之间的关系( 1:1,1:n,n:m)
[5]ForeignKeyConstraint:外键约束
下面以一个简单的测试程序来说明几个类对象之间的关系
程序代码:
1
using System;
2
using System.Collections.Generic;
3
using System.Text;
4
using System.Data;
5![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
namespace DataSetDemo
7
{
8
/// <summary>
9
/// 此程序主要是测试非类型化的DataSet及相关的操作等
10
/// </summary>
11
public class Program
12
{
13
static void Main(string[] args)
14
{
15
TestDataSet();
16
}
17![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
18
/// <summary>
19
///测试DataSet,DataTable,DataRow,DataColumn,DataRelation等等
20
/// </summary>
21
public static void TestDataSet()
22
{
23
//创建一个数据集
24
DataSet customerOrders = new DataSet("CustomerOrders");
25
//创建三个数据表Customers ,Orders,Procucta
26
DataTable customers = new DataTable("Customers");
27
DataTable orders = new DataTable("Orders");
28
DataTable products = new DataTable("Products");
29![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
30
//为Customers表添加列
31
DataColumn myColumn = new DataColumn("CustID", typeof(System.Int32));
32
customers.Columns.Add(myColumn);
33
myColumn = new DataColumn("CustName", typeof(System.String));
34
customers.Columns.Add(myColumn);
35![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
36
//为Products添加列
37
myColumn = new DataColumn("ProdID", typeof(System.Int32));
38
products.Columns.Add(myColumn);
39
myColumn = new DataColumn("ProdName", typeof(System.String));
40
products.Columns.Add(myColumn);
41![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
42
//为Orders表添加列
43
myColumn = new DataColumn("OrderID", typeof(System.Int32));
44
orders.Columns.Add(myColumn);
45
myColumn = new DataColumn("CustID", typeof(System.Int32));
46
orders.Columns.Add(myColumn);
47
myColumn = new DataColumn("ProdID", typeof(System.Int32));
48
orders.Columns.Add(myColumn);
49![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
50
//设置主键
51
customers.PrimaryKey = new DataColumn[] { customers.Columns["CustID"] };
52
products.PrimaryKey = new DataColumn[] { products.Columns["ProdID"] };
53
orders.PrimaryKey = new DataColumn[] { orders.Columns["OrderID"] };
54![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
55
//设置外键约束
56
ForeignKeyConstraint custOrderFK = new ForeignKeyConstraint("CustOrderFK",
57
customers.Columns["CustID"], orders.Columns["CustID"]);
58
custOrderFK.DeleteRule = Rule.Cascade;
59
custOrderFK.UpdateRule = Rule.Cascade;
60![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
61
ForeignKeyConstraint prodOrderFk = new ForeignKeyConstraint("ProdOrderFK",
62
products.Columns["ProdID"], orders.Columns["ProdID"]);
63
prodOrderFk.DeleteRule = Rule.Cascade;
64
prodOrderFk.UpdateRule = Rule.Cascade;
65![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
66
//添加外键约束
67
orders.Constraints.Add(custOrderFK);
68
orders.Constraints.Add(prodOrderFk);
69![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
70
//设置列属性自动增加
71
DataColumn col = customers.Columns["CustID"];
72
col.AutoIncrement = true;
73
col.AutoIncrementSeed = 1;
74
col.AutoIncrementStep = 1;
75![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
76
col = products.Columns["ProdID"];
77
col.AutoIncrement = true;
78
col.AutoIncrementSeed = 1;
79
col.AutoIncrementStep = 1;
80![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
81
col = orders.Columns["OrderID"];
82
col.AutoIncrement = true;
83
col.AutoIncrementSeed = 1;
84
col.AutoIncrementStep = 1;
85![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
86
//将三张表添加到数据集
87
customerOrders.Tables.Add(customers);
88
customerOrders.Tables.Add(products);
89
customerOrders.Tables.Add(orders);
90![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
91
//为表添加关系
92
DataRelation customersToOrders =
93
new DataRelation("CustomerID", customers.Columns["CustID"], orders.Columns["CustID"]);
94
customerOrders.Relations.Add(customersToOrders);
95![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
96
DataRelation productsToOrders =
97
new DataRelation("ProductID", products.Columns["ProdID"], orders.Columns["CustID"]);
98
customerOrders.Relations.Add(productsToOrders);
99![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
100
//向表里添加记录
101
DataRow tempRow = customers.NewRow();
102
tempRow["CustName"] = "Bills Feng";
103
customers.Rows.Add(tempRow);
104![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
105
tempRow = customers.NewRow();
106
tempRow["CustName"] = "Diao You";
107
customers.Rows.Add(tempRow);
108![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
109
//table products
110
tempRow = products.NewRow();
111
tempRow["ProdName"] = "iPhone";
112
products.Rows.Add(tempRow);
113![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
114
tempRow = products.NewRow();
115
tempRow["ProdName"] = "iPod";
116
products.Rows.Add(tempRow);
117![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
118
//table orders
119
tempRow = orders.NewRow();
120
tempRow["CustID"] = "1";
121
tempRow["ProdID"] = "1";
122
orders.Rows.Add(tempRow);
123![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
124
tempRow = orders.NewRow();
125
tempRow["CustID"] = "2";
126
tempRow["ProdID"] = "2";
127
orders.Rows.Add(tempRow);
128![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
129
//以下了测试过程
130
//1.测试Custtomers表,GetChileRows
131
foreach (DataRow rowCustomer in customerOrders.Tables["Customers"].Rows)
132
{
133
Console.WriteLine(rowCustomer["CustID"] + "-" +
134
rowCustomer["CustName"]);
135
foreach (DataRow rowOrder in rowCustomer.GetChildRows("CustomerID"))
136
{
137
Console.WriteLine("\t" +"ChildRow:"+ rowOrder["OrderID"] + "-" +
138
rowOrder["CustID"]);
139
}
140
Console.WriteLine("![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
.");
141![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
142
}
143![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
144
//2.测试Orders表, 测试GetParentrows
145
DataRow rowParent;
146
foreach (DataRow rowOrder in customerOrders.Tables["Orders"].Rows)
147
{
148
Console.WriteLine(rowOrder["OrderID"] + "\t" + rowOrder["CustID"]+"\t"+rowOrder["ProdID"]);
149
//定位相关的父行
150
rowParent = rowOrder.GetParentRow("CustomerID");
151
Console.WriteLine("\t" +"ParentRow:"+ rowParent["CustName"]);
152
rowParent = rowOrder.GetParentRow("ProductID");
153
Console.WriteLine("\t" + "ParentRow:" + rowParent["ProdName"]);
154
Console.WriteLine("![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
.");
155
}
156![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
157
}
158
}
159
}
160![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
15
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
16
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
17
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
18
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
19
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
20
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
21
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
22
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
23
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
24
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
25
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
26
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
27
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
28
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
29
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
30
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
31
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
32
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
33
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
34
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
35
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
36
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
37
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
38
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
39
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
40
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
41
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
42
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
43
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
44
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
45
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
46
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
47
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
48
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
49
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
50
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
51
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
52
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
53
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
54
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
55
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
56
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
57
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
58
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
59
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
60
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
61
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
62
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
63
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
64
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
65
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
66
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
67
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
68
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
69
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
70
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
71
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
72
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
73
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
74
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
75
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
76
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
77
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
78
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
79
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
80
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
81
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
82
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
83
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
84
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
85
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
86
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
87
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
88
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
89
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
90
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
91
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
92
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
93
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
94
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
95
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
96
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
97
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
98
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
99
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
100
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
101
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
102
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
103
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
104
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
105
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
106
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
107
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
108
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
109
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
110
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
111
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
112
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
113
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
114
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
115
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
116
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
117
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
118
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
119
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
120
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
121
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
122
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
123
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
124
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
125
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
126
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
127
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
128
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
129
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
130
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
131
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
132
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
133
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
134
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
135
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
136
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
137
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
138
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
139
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
140
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
141
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
142
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
143
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
144
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
145
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
146
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
147
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
148
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
149
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
150
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
151
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
152
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
153
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
154
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](https://www.cnblogs.com/Images/dot.gif)
155
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
156
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
157
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
158
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
159
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
160
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)