În exemplul anterior puteţi observa cum am utilizat push pentru a adăuga mai multe elemente la un array.
In the previous example you can see how I use push to add two more elements to an array.
Folosind [] indicăm faptul că vrem să declarăm un array de elemente, nu un singur element.
Using [] we are indicating that we want to declare an array of elements, not a single element.
MoveNext() verifică pur și simplu dacă există elemente în array care urmează după poziția curentă la care obiectul iterator indică.
MoveNext() simply checks if there are items in the array that follow after the current position that the iterator object points at.
elemente[numarElemente++] = element;} Dacă executați exemplul acum, ar trebui să funcționeze bine, indiferent de câte elemente adăugăm, array-ul se va redimensiona pentru a acomoda numarul de elemente.
items[count++] = item;} Run the example now, and it should work just fine, no matter how many items we add, the array will resize itself to fit them all.
Cea mai de bază definiție a unui array este "o secvență de elemente de același tip".
The most basic definition of an array is "a sequence of elements of the same kind".
Din acest motiv, vă voi spune pur și simplu că o buclă Foreach a fost proiectată pentru a itera prin toate elementele unui array, liste sau orice altă colecție de elemente care implementează interfața IEnumerable.
For this reason, i will simply tell you that a Foreach loop was designed to iterate through all elements of an array, list or any other collection of elements that implement iEnumerable interface.
Placa reprezintă baza pe care se sprijină toate celelalte elemente ale clădirii.
The slab forms the base on which all other parts of the building rest.
Există multe elemente ale rezoluţiei cu care putem fi de acord.
There are many elements to the resolution we can agree with.
Spinoarele sunt elemente ale unui subspațiu vector al unei algebre Clifford.
Spinors are elements of a vector subspace of some Clifford algebra.
În timpul verificării limitate au fost analizate doar anumite elemente ale planului de marketing.
During the limited review, specific aspects of the marketing plan were evaluated.
Din fericire, alte elemente ale ecuaţiei par să se modifice.
Fortunately, a number of other factors appear to be evolving.
De data asta sunt combinate elemente ale primelor două asasinate.
And this combines elements of the first and second murders.
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.