Skip to content

Commit ae615bb

Browse files
authored
Merge branch 'main' into smoke-test2
2 parents b3d78fe + aa9f32f commit ae615bb

File tree

103 files changed

+2078
-1413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2078
-1413
lines changed

snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void Main()
7171
Peek at next item to dequeue: two
7272
Dequeuing 'two'
7373
74-
Contents of the copy:
74+
Contents of the first copy:
7575
three
7676
four
7777
five
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Library</OutputType>
5+
<TargetFrameworks>net4.8</TargetFrameworks>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
</PropertyGroup>
8+
9+
</Project>

snippets/csharp/VS_Snippets_ADO.NET/Classic WebData DataTable Example/CS/source.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
using System;
1+
using System;
22
using System.Xml;
33
using System.Data;
44
using System.Data.Common;
55
using System.Windows.Forms;
66

7-
public class Form1: Form
7+
public class Form1 : Form
88
{
99
protected DataSet DataSet1;
10-
protected DataGrid dataGrid1;
10+
protected DataGrid DataGrid1;
1111

1212
// <Snippet1>
1313
// Put the next line into the Declarations section.
@@ -63,7 +63,7 @@ private void MakeParentTable()
6363

6464
// Create three new DataRow objects and add
6565
// them to the DataTable
66-
for (int i = 0; i<= 2; i++)
66+
for (int i = 0; i <= 2; i++)
6767
{
6868
row = table.NewRow();
6969
row["id"] = i;
@@ -81,7 +81,7 @@ private void MakeChildTable()
8181

8282
// Create first column and add to the DataTable.
8383
column = new DataColumn();
84-
column.DataType= System.Type.GetType("System.Int32");
84+
column.DataType = System.Type.GetType("System.Int32");
8585
column.ColumnName = "ChildID";
8686
column.AutoIncrement = true;
8787
column.Caption = "ID";
@@ -93,7 +93,7 @@ private void MakeChildTable()
9393

9494
// Create second column.
9595
column = new DataColumn();
96-
column.DataType= System.Type.GetType("System.String");
96+
column.DataType = System.Type.GetType("System.String");
9797
column.ColumnName = "ChildItem";
9898
column.AutoIncrement = false;
9999
column.Caption = "ChildItem";
@@ -103,7 +103,7 @@ private void MakeChildTable()
103103

104104
// Create third column.
105105
column = new DataColumn();
106-
column.DataType= System.Type.GetType("System.Int32");
106+
column.DataType = System.Type.GetType("System.Int32");
107107
column.ColumnName = "ParentID";
108108
column.AutoIncrement = false;
109109
column.Caption = "ParentID";
@@ -115,28 +115,28 @@ private void MakeChildTable()
115115

116116
// Create three sets of DataRow objects,
117117
// five rows each, and add to DataTable.
118-
for(int i = 0; i <= 4; i ++)
118+
for (int i = 0; i <= 4; i++)
119119
{
120120
row = table.NewRow();
121121
row["childID"] = i;
122122
row["ChildItem"] = "Item " + i;
123-
row["ParentID"] = 0 ;
123+
row["ParentID"] = 0;
124124
table.Rows.Add(row);
125125
}
126-
for(int i = 0; i <= 4; i ++)
126+
for (int i = 0; i <= 4; i++)
127127
{
128128
row = table.NewRow();
129129
row["childID"] = i + 5;
130130
row["ChildItem"] = "Item " + i;
131-
row["ParentID"] = 1 ;
131+
row["ParentID"] = 1;
132132
table.Rows.Add(row);
133133
}
134-
for(int i = 0; i <= 4; i ++)
134+
for (int i = 0; i <= 4; i++)
135135
{
136136
row = table.NewRow();
137137
row["childID"] = i + 10;
138138
row["ChildItem"] = "Item " + i;
139-
row["ParentID"] = 2 ;
139+
row["ParentID"] = 2;
140140
table.Rows.Add(row);
141141
}
142142
}
@@ -158,7 +158,7 @@ private void BindToDataGrid()
158158
{
159159
// Instruct the DataGrid to bind to the DataSet, with the
160160
// ParentTable as the topmost DataTable.
161-
dataGrid1.SetDataBinding(dataSet,"ParentTable");
161+
DataGrid1.SetDataBinding(dataSet, "ParentTable");
162162
}
163163
// </Snippet1>
164164
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Library</OutputType>
5+
<TargetFrameworks>net4.8</TargetFrameworks>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
</PropertyGroup>
8+
9+
</Project>

0 commit comments

Comments
 (0)