Operativsystem: .............................................................
Operativsystem: .............................................................
Operativsystem: .............................................................
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Et praktisk eksempel på OOP: Person og Adresse klassen:.........................................................114<br />
Kommentar til Adresse klassen: ..............................................................................................114<br />
Person klassen, som ’har en’ Adresse:.....................................................................................115<br />
Kommentar til klassen Person: ................................................................................................116<br />
En applikation som anvender klasserne Adresse og Person: ...................................................117<br />
Proporties i C# klasser: ................................................................................................................118<br />
Opgaver:...................................................................................................................................120<br />
Eksempler på Polymorfisme og Arv:...........................................................................................121<br />
Override metoder i System.Object:..........................................................................................123<br />
Opgaver:...................................................................................................................................124<br />
Eksempel: Polymorfisme og dynamisk binding ......................................................................125<br />
Opgaver:...................................................................................................................................127<br />
Polymorfisme og Streams:.......................................................................................................127<br />
Abstrakte klasser:.........................................................................................................................131<br />
Arrays og operatorer på objekter (operator overloading): ...........................................................132<br />
Opgaver:...................................................................................................................................134<br />
Interfaces – en anden slags arv: ...................................................................................................135<br />
Implementere standard interfaces – IComparable: ..................................................................138<br />
Opgaver:...................................................................................................................................140<br />
Strukturer: ....................................................................................................................................140<br />
Brug af unsafe:.........................................................................................................................143<br />
Strukturer modsat klasser:........................................................................................................144<br />
Typer og hvad der kan stå i en C# fil (*.cs fil): ...........................................................................145<br />
Namespace: ..................................................................................................................................146<br />
Alias for et namespace eller for en klasse:...............................................................................148<br />
User Defined namespace:.........................................................................................................149<br />
Opgaver:...................................................................................................................................150<br />
Exceptions i C# programmer: ......................................................................................................151<br />
Opgaver:...................................................................................................................................156<br />
Serialisering af objekter – gem objekter: .....................................................................................157<br />
Opgaver:...................................................................................................................................159<br />
.NET eller DotNet – Hvad er det egentligt?.................................................................................160<br />
IL – Intermediate Language:....................................................................................................161<br />
Managed/Unmanaged kode: ....................................................................................................162<br />
COM: .......................................................................................................................................162<br />
JIT kompiler:............................................................................................................................163<br />
En EXE eller DLL er ikke en EXE eller DLL!........................................................................163<br />
Eksempel: Projekt i SharpDevelop: .........................................................................................164<br />
AssemblyInfo:..........................................................................................................................164<br />
En klasse i Visual Basic:..........................................................................................................167<br />
Klasse i JScript:........................................................................................................................169<br />
En .NET applikation der bruger klasserne:..............................................................................171<br />
XML config-filer: ....................................................................................................................173<br />
At producere IL kode dynamisk: .............................................................................................177<br />
Opgaver:...................................................................................................................................180<br />
At skrive IL (Intermediate Language) kode i hånden:.............................................................181<br />
Et konkret eksempel på IL: ......................................................................................................184<br />
Dis-assembling, utilities:..........................................................................................................186