Last active
June 19, 2021 13:54
Revisions
-
neiesc revised this gist
Jun 19, 2021 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { Console.WriteLine((1, 1) == (1, 1)); Console.WriteLine((1, 2) == (1, 1)); } } -
neiesc revised this gist
Jun 19, 2021 . 1 changed file with 17 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { var (_, populacao) = ObtetrPopulacaoDaCidade(); Console.Write(populacao); } private static (string cidade, int populacao) ObtetrPopulacaoDaCidade() { return ("Rio Preto", 500_000); } } -
neiesc revised this gist
Jun 19, 2021 . 1 changed file with 29 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { //(string cidade, int populacao) = ObtetrPopulacaoDaCidade(); //Console.Write($"{cidade}: {populacao}"); //var (cidade, populacao) = ObtetrPopulacaoDaCidade(); //Console.Write($"{cidade}: {populacao}"); //(string cidade, var populacao) = ObtetrPopulacaoDaCidade(); //Console.Write($"{cidade}: {populacao}"); string cidade; int populacao; (cidade, populacao) = ObtetrPopulacaoDaCidade(); Console.Write($"{cidade}: {populacao}"); } private static (string cidade, int populacao) ObtetrPopulacaoDaCidade() { return ("Rio Preto", 500_000); } } -
neiesc created this gist
Jun 19, 2021 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { (string, int) populacao = ("Rio Preto", 500_000); Console.WriteLine($"{populacao.Item1}: {populacao.Item2}"); //var populacao = ("Rio Preto", 500_000); //Console.WriteLine($"{populacao.Item1}: {populacao.Item2}"); //(string cidade, int populacao) populacao = ("Rio Preto", 500_000); //Console.WriteLine($"{populacao.cidade}: {populacao.populacao}"); //var populacao = ("Rio Preto", 500_000); //Console.WriteLine(populacao); } }