4
4
5
5
partial class Program
6
6
{
7
- static void FilterAndSort ( )
7
+ private static void FilterAndSort ( )
8
8
{
9
9
SectionTitle ( "Filter and sort" ) ;
10
10
@@ -39,7 +39,7 @@ static void FilterAndSort()
39
39
WriteLine ( ) ;
40
40
}
41
41
42
- static void JoinCategoriesAndProducts ( )
42
+ private static void JoinCategoriesAndProducts ( )
43
43
{
44
44
SectionTitle ( "Join categories and products" ) ;
45
45
@@ -60,7 +60,7 @@ static void JoinCategoriesAndProducts()
60
60
}
61
61
}
62
62
63
- static void GroupJoinCategoriesAndProducts ( )
63
+ private static void GroupJoinCategoriesAndProducts ( )
64
64
{
65
65
SectionTitle ( "Group join categories and products" ) ;
66
66
@@ -88,7 +88,7 @@ static void GroupJoinCategoriesAndProducts()
88
88
}
89
89
}
90
90
91
- static void ProductsLookup ( )
91
+ private static void ProductsLookup ( )
92
92
{
93
93
SectionTitle ( "Products lookup" ) ;
94
94
@@ -128,7 +128,7 @@ static void ProductsLookup()
128
128
}
129
129
}
130
130
131
- static void AggregateProducts ( )
131
+ private static void AggregateProducts ( )
132
132
{
133
133
SectionTitle ( "Aggregate products" ) ;
134
134
@@ -177,7 +177,7 @@ static void AggregateProducts()
177
177
. Sum ( p => p . UnitPrice * p . UnitsInStock ) , 10 : $#,##0.00} " ) ;
178
178
}
179
179
180
- static void OutputTableOfProducts ( Product [ ] products ,
180
+ private static void OutputTableOfProducts ( Product [ ] products ,
181
181
int currentPage , int totalPages )
182
182
{
183
183
string line = new ( '-' , count : 73 ) ;
@@ -197,7 +197,7 @@ static void OutputTableOfProducts(Product[] products,
197
197
lineHalf , currentPage + 1 , totalPages + 1 , lineHalf ) ;
198
198
}
199
199
200
- static void OutputPageOfProducts ( IQueryable < Product > products ,
200
+ private static void OutputPageOfProducts ( IQueryable < Product > products ,
201
201
int pageSize , int currentPage , int totalPages )
202
202
{
203
203
// We must order data before skipping and taking to ensure
@@ -213,7 +213,7 @@ static void OutputPageOfProducts(IQueryable<Product> products,
213
213
currentPage , totalPages ) ;
214
214
}
215
215
216
- static void PagingProducts ( )
216
+ private static void PagingProducts ( )
217
217
{
218
218
SectionTitle ( "Paging products" ) ;
219
219
@@ -242,7 +242,7 @@ static void PagingProducts()
242
242
}
243
243
}
244
244
245
- static void OutputProductsAsXml ( )
245
+ private static void OutputProductsAsXml ( )
246
246
{
247
247
SectionTitle ( "Output products as XML" ) ;
248
248
@@ -260,7 +260,7 @@ from p in productsArray
260
260
WriteLine ( xml . ToString ( ) ) ;
261
261
}
262
262
263
- static void ProcessSettings ( )
263
+ private static void ProcessSettings ( )
264
264
{
265
265
string path = Path . Combine (
266
266
Environment . CurrentDirectory , "settings.xml" ) ;
@@ -282,7 +282,7 @@ static void ProcessSettings()
282
282
}
283
283
}
284
284
285
- static void CustomExtensionMethods ( )
285
+ private static void CustomExtensionMethods ( )
286
286
{
287
287
SectionTitle ( "Custom aggregate extension methods" ) ;
288
288
0 commit comments