Professional Documents
Culture Documents
langage C#
Introduction la POO
1. Histoire de la POO
2. Historique du C#
12
13
14
15
15
15
16
17
18
18
20
21
4. Le dveloppement objet
22
www.editions-eni.fr
Editions ENI
22
22
25
26
32
33
35
1/8
37
37
38
38
39
40
42
Les types du C#
1. "En C#, tout est typ !"
49
54
54
58
59
60
61
64
66
67
68
69
70
73
3. Exercice corrig
77
3.1 nonc
3.2 Correction
77
77
www.editions-eni.fr
Editions ENI
2/8
Cration de classes
1. Introduction
81
2. Espace de noms
81
88
www.editions-eni.fr
Editions ENI
89
90
91
92
93
101
101
103
103
104
105
106
108
109
111
112
116
116
119
132
132
134
144
145
147
147
148
148
3/8
4. Les interfaces
151
4.1 Introduction
4.2 Le contrat
4.3 Dclaration d'une interface
4.4 Implmentation
4.5 Visual Studio et les interfaces
4.6 Reprsentation UML d'une interface
4.7 Interfaces et polymorphisme
4.8 Exercice
4.8.1 nonc
4.8.2 Conseils
4.8.3 Correction
4.9 Les interfaces du .NET
5. Association, composition et agrgation
5.1 Les tableaux
5.2 Les collections
5.2.1 List<> et LinkedList<>
5.2.2 Queue<T> et Stack<T>
5.2.3 Dictionary<TKey, TValue>
5.2.4 Les numrateurs
5.3 Exercice
5.3.1 nonc
5.3.2 Correction
151
152
153
154
156
158
158
159
159
160
162
166
168
175
182
183
186
186
187
188
188
189
191
7. Les structures
194
195
197
www.editions-eni.fr
200
Editions ENI
4/8
201
202
206
Hritage et polymorphisme
1. Comprendre l'hritage
211
212
212
213
213
214
216
216
219
221
223
225
4. Exercice
226
4.1 nonc
4.2 Corrig
226
227
229
230
www.editions-eni.fr
Editions ENI
5/8
7. Le polymorphisme
233
233
234
235
237
2. Le pattern Observateur
238
242
245
248
253
254
255
260
268
270
271
272
274
276
5.1 nonc
5.2 Conseils pour la ralisation
5.3 Correction
276
277
278
Le multithreading
www.editions-eni.fr
Editions ENI
6/8
1. Introduction
283
2. Comprendre le multithreading
283
3. Multithreading et .NET
287
4. Implmentation en C#
288
288
292
293
293
293
294
296
299
304
304
306
308
310
311
312
6. Communication interthread
312
6.1 Join
6.2 Les synchronization events
312
314
322
8. Exercice
325
8.1 nonc
8.2 Correction
www.editions-eni.fr
325
326
Editions ENI
7/8
Index
www.editions-eni.fr
331
Editions ENI
8/8