Click here to Skip to main content
15,867,568 members

Comments by Guillermo Perez (Top 3 by date)

Guillermo Perez 13-Sep-20 14:41pm View    
I did remember also the "unboxing" section of my book... (pro c#) and they did it like this:

foreach (T thing in list){
var Thing = thing as Fruit
if (Thing != null)...
}
Guillermo Perez 23-Jun-20 11:24am View    
dead ones? nobody replied this correctly (not even you!) and did happen to me yesterday... what's going on?
Guillermo Perez 23-Jun-20 10:47am View    
yes, but the answer is wrong, the solution 1 says you can't use where inside a for loop, which is incorrect...