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 characters
public class Objeto | |
{ | |
public int PrimeiroValor { get;set;} | |
public int SegundoValor { get;set;} | |
} | |
[TestFixture ()] | |
public class Test | |
{ | |
[Test ()] |
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 characters
public class Objeto | |
{ | |
public int PrimeiroValor { get;set;} | |
public int SegundoValor { get;set;} | |
public int ObterSomaDosValores() | |
{ | |
return PrimeiroValor + SegundoValor; | |
} | |
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 characters
[Test()] | |
public void Somando_mais_de_uma_propriedade_com_select_mais_sum() | |
{ | |
var lista = new List<Objeto> (); | |
lista.Add (new Objeto{ PrimeiroValor = 10, SegundoValor = 20 }); | |
lista.Add (new Objeto{ PrimeiroValor = 30, SegundoValor = 40 }); | |
Assert.AreEqual(100, lista.Select(x => x.PrimeiroValor + x.SegundoValor).Sum()); | |
} |
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 characters
<table cellspacing="10px" cellpadding="10px"> | |
<tr> | |
<td>l1c1</td> | |
<td>l1c2</td> | |
</tr> | |
<tr> | |
<td>l2c1</td> | |
<td>l2c2</td> | |
</tr> | |
</table> |
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 characters
table{ | |
border-spacing: 10px; | |
} | |
td{ | |
padding: 10px; | |
} |
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 characters
let pi = 3.14 |
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 characters
var nome = "Márcio Fábio Althmann" | |
var idade = 30 | |
var anoDeNascimento: Int | |
anoDeNascimento = 1983 | |
var primeiroNome: String | |
primeiroNome = "Márcio" | |
var dia = 8, mes = 10, ano = 1983 |
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 characters
for i in 1...10{ | |
println(i) | |
} |
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 characters
for _ in 1...10{ | |
println("Olá") | |
} |
OlderNewer