Am mai vorbit despre array-uri înainte, într-un întreg capitol.
We talked about arrays before, in an entire chapter.
Am văzut deja această reprezentare în exemplele despre array-uri.
We already saw this representation in the arrays examples.
Am vorbit deja despre această eroare când am învățat despre array-uri.
We already talked about this error when we learned about arrays.
Funcționează cu array-uri de orice tip, inclusiv numere, booleani, structuri și instanțe de clasă.
It works on arrays of any type - including numbers, booleans, structs and class instances.
Desigur, vom discuta array-uri și liste în detaliu atunci când vom ajunge la momentul potrivit.
Of course, we will discuss arrays and lists in detail, when the time is right.
Utilizați array-uri atunci când trebuie să procesați un număr fix de elemente la care aveți nevoie de acces prin index.
Use arrays when you have to process a fixed number of elements to which you need an access through index.
Incepand cu Array-uri, putem spune deja că avem cunoștințe foarte elementare de programare C#.
Starting with arrays, we can already say we have a very basic knowledge of C# programming.
Nu am învățat despre array-uri încă, dar vă puteți imagina o matrice ca fiind un număr de valori de același tip, grupate în aceeași variabilă.
We haven't learned arrays yet, but you may imagine an array as being a number of values of same type, grouped in the same variable.
In exemplul de mai sus am creat două array-uri - numere și nume, unul de tip int, celălalt de tip string.
In the above example we have created two arrays - numbers and names, one of type int, the other of type string.
Dicționarele sunt un alt tip comun de colecție, dar sunt diferite de array-uri prin faptul că te lasă să acesezi valori pe bază de o cheie pe care o specifici.
Dictionaries are another common type of collection, but they differ from arrays because they let you access values based on a key you specify.
Oricum, în această lecție, ne vom ocupa doar de array-uri, deoarece acestea oferă viteza brută, și List<T>, pentru că oferă o manipulare ușoară și este generică.
Anyway, in this lesson, we will be dealing with just arrays, because they offer the raw speed, and List<T>, because it offers easy manipulation and it is generic.
Practic, List<T>combină cele mai bune caracteristici dintre array-uri și liste, acesta fiind motivul pentru care este o structură de date preferată în multe situații.
Practically, List<T>combines the best of arrays and lists, this being the reason for which it is a preferred data structure in many situations.
În cele din urmă, am folosit bucla Foreach pentru a trece prin toate elementele acestor array-uri și a afișa elementele la consola.
Finally, we used the foreach loop to cycle through all the elements of those arrays and display the elements on the console output.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.