Posts by Eduardo Moscatelli • 661 points
7 posts
-
20
votes4
answers9040
viewsQ: How to return 2 or more values at once in a method?
It is common to see examples of methods returning one value at a time. I’ve seen cases where you need to create a class only to package the data and be able to return more values. Use the generic…
-
1
votes1
answer239
viewsQ: Grid (col-Xs) bootstrap 4: 2 or 3 columns?
Good morning guys, there are some grids in PSD for mobile ( col-Xs ) with 2 columns and some with examples of 3 columns. Does anyone know why this difference? Would have some mobile grid in PSD or…
twitter-bootstrapasked Eduardo Moscatelli 661 -
4
votes2
answers4792
viewsA: What is Yenumerable and Yenumerator for?
In the Question 3 I believe that by virtue of arrays already implement the "factory Ienumerable" we can "instantiate" the enumerator through the method array.GetEnumerator() and its consequent…
-
0
votes0
answers50
viewsQ: What do the terms Generic, Non-generic, Cast, Boxing and Unboxing mean?
Can anyone explain these terms so commonly seen in C#?
c#asked Eduardo Moscatelli 661 -
9
votes2
answers4792
viewsQ: What is Yenumerable and Yenumerator for?
I made a combo of questions about IEnumerable and IEnumerator not only to help me but to help everyone who needs a more didactic explanation. Question 1 Could someone explain in a more didactic way…
-
3
votes1
answer121
viewsQ: Iterate an array (vector) via Ienumerator? For what reason?
In which case it would make sense for me to give up iterating a array using loops "normal" (for/foreach/while) via index to use the IEnumerator as shown in Example 3? Example1 //Usando for int[]…
-
18
votes3
answers713
viewsQ: foreach is a loop or iterator? Or can it be both?
In a video tutorial the instructor stated not to fall for the nonsense of thinking that the foreach is a loop, and it was vehement that he was an iterator. There are cases where we can go through…