Est-ce que tout est un objet en .NET et C# ?

In .NET and C# all is object.

Simply said.

Even a value type, a struct, an interface and an enum.

One can not approve, but the point is that everything is object, except pointers/references, and literals from binary files, even CPU optimized primitive types, since it is the OOP Theory as well as the. NET specifications and therefore the facts.

Lire la suite »


Que sont les classes et les interfaces en C# ?

Interfaces are to make an abstraction, an archetype, of the abstraction, the classes, of the reality, the objects.

Interfaces are to specify contract terms without providing implementation provided by classes.

Lire la suite »


Qu'est-ce que le polymorphisme en POO ?

Polymorphism in OOP Theory is the ability to:

  • Invoke an operation on an instance of a specialized type by only knowing its generalized type while calling the method of the specialized type and not that of the generalized type: this is dynamic polymorphism.
  • Define several methods having the save name but having differents parameters: this is static polymorphism.

The first if the historical definition and the most important.

Lire la suite »


Qu'est-ce que l'encapsulation en POO ?

Encapsulation in OOP Theory is the process to mask some properties and operations in the class that will become inaccessible from the exterior: these are only internal things and behaviours like a digestive system.

It's a compartmentalization.

Lire la suite »


Qu'est-ce que l'abstraction en POO ?

Abstraction in OOP Theory consists in retaining only the relevant aspects of a real world object for a specific problem.

Thus we talk about abstraction of the reality.

It's a reduction.

Lire la suite »


Comment améliorer ses connaissances en C#

Étudiez le code des logiciels que vous aimez que vous pouvez trouver par exemple sur CodeProject, GitHub, GitLab, SourceForge, etc.

Essayez de faire des logiciels similaires et adaptez-les, sans plagier en dehors de l'apprentissage personnel, comme un bloc-notes, une calculatrice, un explorateur de fichiers, un gestionnaire de banque... ou un jeu.

Écrivez du code, ne vous arrêtez pas pour écrire.

Et surtout, lisez et relisez des livres.

Personnellement, j'aime les livres de Wrox (Wiley), ils sont très bons : n'hésitez pas à lire même des livres anciens si la version plus récente n'est pas disponible.

Les cours en ligne sont excellents aussi, mais ils ne remplacent pas les livres et le code source ou la formation professionnelle.

Pour pouvoir comprendre des sujets avancés et approfondis liés à la programmation et à la nature des ordinateurs, nous devons aller à l'Assembleur, non seulement à l'IL, mais à l'assembleur natif et au code machine.

Lire la suite »