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

Merge pull request #3652 from daniloyamauti/patch-13

[csharp/pt-br] Missing translation
This commit is contained in:
Divay Prakash
2019-11-24 12:07:10 +05:30
committed by GitHub

View File

@@ -407,12 +407,12 @@ on a new line! ""Wow!"", the masses cried";
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>
{
// We can iterate, since T is a IEnumerable
// Nos podemos iterar, desde que T seja um "IEnumerable"
foreach (var item in toPrint)
// Item is an int
// Item é um inteiro
Console.WriteLine(item.ToString());
}