Examples with "operatorul return" and their translation in Engels
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Cu siguranță știți ce face operatorul return în interiorul unei funcții, oprește imediat execuția și returnează o valoare apelantului funcției.
You definitely know what the return operator does inside a function, it stops the execution immediately, and returns a value to the caller of the function.
La fel ca pentru funcții, operatorul return va opri imediat executarea metodei noastre și va returna fluxul de executie unde a fost înainte de apelul metodei.
Just like for functions, the return operator will immediately stop the execution of our method and return the execution workflow to where it was before the method call.
Dacă aș fi folosit operatorul return, imediat ce prima valoare a buclei for ar fi fost returnată, bucla s-ar fi încheiat și execuția ar fi ieșit din funcția GetEnumerator() și s-ar fi întors la codul care a invocat-o.
If I had used the return operator, as soon as the first value of the for loop would be returned, the loop would be ended and the execution would step out of the GetEnumerator() function and return to the code that invoked it.
În acest moment valoarea variabilei pozitieCurenta devine negativă (deoarece prima poziție a array-ului este 0) și terminăm execuția metodei folosind operatorul return.
In this moment the value of the variable currentPosition becomes negative (as the first position of the array is 0) and we end the execution of the method using the operator return.
Nu știți însă ce face yield return, dar îl puteți imagina ca fiind același lucru ca și operatorul return simplu, care însă nu oprește executarea funcției apelate.
You don't know what yield return does, but you can think of it as the same thing as the simple return operator, but which does not stop the execution of the called function.
/ foloseste iteratorul personalizat in loc de operatorul yield return,
/ use the custom enumerator instead of yield return operator, supplying this
Voi discuta despre operatorul yield return mai detaliat într-o lecție viitoare, dar, deocamdată, gândiți-vă la el doar ca o modalitate de returnare a mai multor valori dintr-o funcție.
I will discuss the yield return operator in greater detail in a future lesson, but for now, think of it just as a way of returning more than one value from a function.
Folosirea yield return mi-a permis să returnez acea valoare, la fel cum ar face operatorul normal return, dar nu a încheiat bucla, în schimb, a continuat să returneze valori până când bucla for s-a încheiat.
Using yield return allowed me to return that value, just like the normal return operator would, but it also did not end the loop, instead, it continue to return values until the for loop ended.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.