File tree
80 files changed
+284
-285
lines changed- LISTING 4-10 The DirectoryInfo class/LISTING 4-10 The DirectoryInfo class
- LISTING 4-11 Using Path/LISTING 4-11 Using Path
- LISTING 4-12 C sharp programs/LISTING 4-12 C sharp programs
- LISTING 4-13 httpWebRequest/LISTING 4-13 httpWebRequest
- LISTING 4-14 TCP over sockets/LISTING 4-14 TCP over sockets
- LISTING 4-15 PageViewer/LISTING 4-15 PageViewer
- LISTING 4-15 WebClient async/LISTING 4-15 WebClient async
- LISTING 4-16 HttpClient/LISTING 4-16 HttpClient
- LISTING 4-17 Asynchronous file writing/LISTING 4-17 Asynchronous file writing
- LISTING 4-18 File exceptions/LISTING 4-18 File exceptions
- LISTING 4-19 Read with SQL/LISTING 4-19 Read with SQL
- LISTING 4-1 Using a FileStream/LISTING 4-1 Using a FileStream
- LISTING 4-20 Filter with SQL/LISTING 4-20 Filter with SQL
- LISTING 4-21 Update with SQL/LISTING 4-21 Update with SQL
- LISTING 4-22 SQL injection/LISTING 4-22 SQL injection
- LISTING 4-23 Parameterized query/LISTING 4-23 Parameterized query
- LISTING 4-24 Asynchronous access/LISTING 4-24 Asynchronous access
- LISTING 4-25 NASA JSON/LISTING 4-25 NASA JSON
- LISTING 4-26 XML elements/LISTING 4-26 XML elements
- LISTING 4-27 XML DOM/LISTING 4-27 XML DOM
- LISTING 4-28 Web Service
- LISTING 4-28 Web Service JokeClient
- LISTING 4-28 Web Service JokeOfTheDay
- LISTING 4-29 Musictrack classes/LISTING 4-29 Musictrack classes
- LISTING 4-2 FileStream and IDisposable/LISTING 4-2 FileStream and IDisposable
- LISTING 4-30 LINQ operators/LISTING 4-30 LINQ operators
- LISTING 4-31 var errors/LISTING 4-31 var errors
- LISTING 4-32 var and LINQ/LISTING 4-32 var and LINQ
- LISTING 4-33 LINQ projection/LISTING 4-33 LINQ projection
- LISTING 4-34 Anonymous type/LISTING 4-34 Anonymous type
- LISTING 4-35 LINQ join/LISTING 4-35 LINQ join
- LISTING 4-36 LINQ group/LISTING 4-36 LINQ group
- LISTING 4-37 LINQ take and skip/LISTING 4-37 LINQ take and skip
- LISTING 4-38 LINQ aggregate/LISTING 4-38 LINQ aggregate
- LISTING 4-39 Method based query/LISTING 4-39 Method based query
- LISTING 4-3 StreamWriter and StreamReader/LISTING 4-3 StreamWriter and StreamReader
- LISTING 4-40 Complex query/LISTING 4-40 Complex query
- LISTING 4-41 Complex anonymous types/LISTING 4-41 Complex anonymous types
- LISTING 4-42 Force query execution/LISTING 4-42 Force query execution
- LISTING 4-43 Read XML with LINQ/LISTING 4-43 Read XML with LINQ
- LISTING 4-44 Filter XML with LINQ/LISTING 4-44 Filter XML with LINQ
- LISTING 4-45 Create XML with LINQ/LISTING 4-45 Create XML with LINQ
- LISTING 4-46 Modify XML with LINQ/LISTING 4-46 Modify XML with LINQ
- LISTING 4-47 Add XML with LINQ/LISTING 4-47 Add XML with LINQ
- LISTING 4-48 Binary serialization/LISTING 4-48 Binary serialization
- LISTING 4-49 Custom serialization/LISTING 4-49 Custom serialization
- LISTING 4-4 Storing compressed files/LISTING 4-4 Storing compressed files
- LISTING 4-50 Customization methods/LISTING 4-50 Customization methods
- LISTING 4-51 Binary versions/LISTING 4-51 Binary versions
- LISTING 4-52 XML Serialization/LISTING 4-52 XML Serialization
- LISTING 4-53 XML References/LISTING 4-53 XML References
- LISTING 4-54 Data contract serializer/LISTING 4-54 Data contract serializer
- LISTING 4-55 Array example/LISTING 4-55 Array example
- LISTING 4-56 ArrayList example/LISTING 4-56 ArrayList example
- LISTING 4-57 List example/LISTING 4-57 List example
- LISTING 4-58 Dictionary example/LISTING 4-58 Dictionary example
- LISTING 4-59 Word counter/LISTING 4-59 Word counter
- LISTING 4-5 The File class/LISTING 4-5 The File class
- LISTING 4-60 Set example/LISTING 4-60 Set example
- LISTING 4-61 Queue example/LISTING 4-61 Queue example
- LISTING 4-62 Stack example/LISTING 4-62 Stack example
- LISTING 4-63 Collection initialization/LISTING 4-63 Collection initialization
- LISTING 4-64 Grow an array/LISTING 4-64 Grow an array
- LISTING 4-65 List modification/LISTING 4-65 List modification
- LISTING 4-66 Dictionary modification/LISTING 4-66 Dictionary modification
- LISTING 4-67 Set modification/LISTING 4-67 Set modification
- LISTING 4-68 Custom collection/LISTING 4-68 Custom collection
- LISTING 4-69 ICollection interface/LISTING 4-69 ICollection interface
- LISTING 4-6 Stream exceptions/LISTING 4-6 Stream exceptions
- LISTING 4-7 Drive information/LISTING 4-7 Drive information
- LISTING 4-8 Using FileInfo/LISTING 4-8 Using FileInfo
- LISTING 4-8 Viewing FileInfo/LISTING 4-8 Viewing FileInfo
- LISTING 4-9 The Directory class/LISTING 4-9 The Directory class
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
80 files changed
+284
-285
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
| |||
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
25 |
| - | |
| 24 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
| |||
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
27 |
| - | |
28 | 26 |
| |
29 | 27 |
| |
30 |
| - | |
| 28 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
180 | 179 |
| |
181 | 180 |
| |
182 | 181 |
| |
| |||
257 | 256 |
| |
258 | 257 |
| |
259 | 258 |
| |
260 |
| - | |
| 259 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
8 | 2 |
| |
9 | 3 |
| |
10 | 4 |
| |
| |||
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 |
| - | |
| 11 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 1 | + | |
6 | 2 |
| |
7 | 3 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 | 4 |
| |
17 | 5 |
| |
18 | 6 |
| |
| |||
39 | 27 |
| |
40 | 28 |
| |
41 | 29 |
| |
42 |
| - | |
| 30 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
| 1 | + | |
5 | 2 |
| |
6 | 3 |
| |
7 | 4 |
| |
8 | 5 |
| |
9 | 6 |
| |
10 | 7 |
| |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 |
| |
12 | 15 |
| |
| 16 | + | |
13 | 17 |
| |
14 | 18 |
| |
15 |
| - | |
| 19 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 | 2 |
| |
7 | 3 |
| |
8 |
| - | |
9 |
| - | |
10 | 4 |
| |
11 | 5 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 | 6 |
| |
17 | 7 |
| |
18 | 8 |
| |
| |||
97 | 87 |
| |
98 | 88 |
| |
99 | 89 |
| |
100 |
| - | |
| 90 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 | 2 |
| |
6 |
| - | |
7 | 3 |
| |
8 |
| - | |
9 |
| - | |
10 | 4 |
| |
11 | 5 |
| |
12 | 6 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 7 |
| |
19 | 8 |
| |
20 | 9 |
| |
| |||
36 | 25 |
| |
37 | 26 |
| |
38 | 27 |
| |
39 |
| - | |
40 | 28 |
| |
41 | 29 |
| |
42 | 30 |
| |
| |||
51 | 39 |
| |
52 | 40 |
| |
53 | 41 |
| |
54 |
| - | |
| 42 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
8 | 2 |
| |
9 | 3 |
| |
10 | 4 |
| |
| |||
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 |
| - | |
| 11 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
8 | 2 |
| |
9 | 3 |
| |
10 | 4 |
| |
| |||
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 |
| - | |
| 11 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 | 63 |
| |
65 |
| - | |
| 64 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 | 34 |
| |
36 |
| - | |
| 35 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
| |||
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
50 |
| - | |
| 49 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
8 | 2 |
| |
9 | 3 |
| |
10 | 4 |
| |
| |||
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 |
| - | |
| 11 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 | 13 |
| |
15 | 14 |
| |
16 | 15 |
| |
| |||
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
74 |
| - | |
| 73 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 1 | + | |
8 | 2 |
| |
9 | 3 |
| |
10 | 4 |
| |
| |||
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 |
| - | |
| 11 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
| 44 | + | |
43 | 45 |
| |
| 46 | + | |
44 | 47 |
| |
| 48 | + | |
45 | 49 |
| |
| 50 | + | |
46 | 51 |
| |
| 52 | + | |
47 | 53 |
| |
48 | 54 |
| |
49 | 55 |
| |
50 | 56 |
| |
51 | 57 |
| |
52 | 58 |
| |
53 | 59 |
| |
54 |
| - | |
| 60 | + | |
55 | 61 |
| |
56 | 62 |
| |
57 | 63 |
| |
| |||
78 | 84 |
| |
79 | 85 |
| |
80 | 86 |
| |
81 |
| - | |
| 87 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + |
0 commit comments