TOC

This article is currently in the process of being translated into Italian (~30% done).

Operatori:

Introduzione

Gli operatori sono fondamentalmente dei simboli, sia singolo carattere che una specifica combinazione di più caratteri, i quali specificano operazioni (matematiche, ovviamente, ma anche di indicizzazione, chiamate a funzioni e altro ancora) da eseguire in un'espressione. Se hai letto gli articoli precedenti di questo tutorial, hai già visto diversi operatori, come quello di assegnazione (un singolo simbolo di uguale) usato quando hai imparato a usare le variabili e altro ancora.

So far, we haven't really talked about these operators, because they have been mostly self-explanatory. However, that is not the case for all operators in C# (and believe me, there are a lot), and even for those who makes sense when seeing it, it's nice to get a proper name for it and perhaps even learn a bit more about how it works internally.

In the next several articles, we'll do just that: we will look into many of the C# operators, both the simple and the not-so-simple, talk about what they do and show you how you can use them. You will find some very valuable information in these articles, which will give you a better understanding of what goes on when your code is interpreted, but it will also be a bit more theoretical than what you have previously read. If it turns out to be too much for you right now, then feel free to skip some of it and return later.

This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!