This file contains hidden or 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
| facaAlgo(); | |
| // facaOutraCoisa(); | |
| // facaOutraSegundaCoisa(); | |
| // facaCoisaDemais(); |
This file contains hidden or 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
| // Não execute a menos que você tenha tempo disponível! | |
| public void TesteComArquivoGrande() | |
| { | |
| EscreverLinhasNoArquivo(10000000); | |
| } |
This file contains hidden or 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
| string conteudoDeItemDeLista = match.Groups[3].Value.Trim(); | |
| /* O método Trim() é muito importante. Ela remove os espaços iniciais que poderiam fazer com que o item fosse reconhecido como outra lista. */ |
This file contains hidden or 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
| i = i + 1; // incrementa i |
This file contains hidden or 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
| if (empregado.ehElegivelTodosBeneficios()) |
This file contains hidden or 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
| // Verifica se o funcionário tem direito a todos os benefícios | |
| if (funcionario.Tipo == HORISTA && funcionario.Idade > 65) |
This file contains hidden or 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 Email | |
| { | |
| public void Enviar() | |
| { | |
| EnviarEmail(this._destinatario, this._assunto, this._corpo); | |
| } | |
| } | |
| var mensagem = new Email(); |
This file contains hidden or 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 Email | |
| { | |
| public void Lidar() | |
| { | |
| EnviarEmail(this._destinatario, this._assunto, this._corpo); | |
| } | |
| } | |
| var mensagem = new Email(); |
NewerOlder