1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-09-25 22:09:00 +02:00

[csharp/pt-br] Missing translation

This commit is contained in:
daniloyamauti
2019-10-01 12:50:33 -03:00
committed by GitHub
parent dff76c7965
commit 03b67fff48

View File

@@ -407,12 +407,12 @@ on a new line! ""Wow!"", the masses cried";
return result; return result;
} }
// You can narrow down the objects that are passed in // Você pode pode restringir os objetos que são passados
public static void IterateAndPrint<T>(T toPrint) where T: IEnumerable<int> public static void IterateAndPrint<T>(T toPrint) where T: IEnumerable<int>
{ {
// We can iterate, since T is a IEnumerable // Nos podemos iterar, desde que T seja um "IEnumerable"
foreach (var item in toPrint) foreach (var item in toPrint)
// Item is an int // Item é um inteiro
Console.WriteLine(item.ToString()); Console.WriteLine(item.ToString());
} }