summaryrefslogtreecommitdiffhomepage
path: root/pt-br
diff options
context:
space:
mode:
authorRenan Muliterno Ferreira <45672566+rmuliterno@users.noreply.github.com>2019-10-01 13:27:42 -0300
committerGitHub <noreply@github.com>2019-10-01 13:27:42 -0300
commit80b785ab226cfaa99f1b564ca65a0975abf4c006 (patch)
treeeea69091b287ccf88cfc7452b664b85a8c363030 /pt-br
parentdff76c7965af30e7c7a752513a9ab93a15eb58bc (diff)
Adding more translations
Diffstat (limited to 'pt-br')
-rw-r--r--pt-br/csharp-pt.html.markdown20
1 files changed, 10 insertions, 10 deletions
diff --git a/pt-br/csharp-pt.html.markdown b/pt-br/csharp-pt.html.markdown
index 2ff59296..4bcf1d84 100644
--- a/pt-br/csharp-pt.html.markdown
+++ b/pt-br/csharp-pt.html.markdown
@@ -308,25 +308,25 @@ on a new line! ""Wow!"", the masses cried";
}
///////////////////////////////////////
- // Converting Data Types And Typecasting
+ // Convertendo Data Types e Typecasting
///////////////////////////////////////
// Converting data
- // Convert String To Integer
- // this will throw a FormatException on failure
- int.Parse("123");//returns an integer version of "123"
+ // Converter String para Integer
+ // isso vai jogar um erro FormatException quando houver falha
+ int.Parse("123");//retorna uma verão em Integer da String "123"
- // try parse will default to type default on failure
- // in this case: 0
+ // try parse vai ir por padrão para o typo default quando houver uma falha
+ // nesse caso: 0
int tryInt;
- if (int.TryParse("123", out tryInt)) // Function is boolean
+ if (int.TryParse("123", out tryInt)) // Função booleana
Console.WriteLine(tryInt); // 123
- // Convert Integer To String
- // Convert class has a number of methods to facilitate conversions
+ // Converter Integer para String
+ // A classe Convert possuí métodos para facilitar as conversões
Convert.ToString(123);
- // or
+ // ou
tryInt.ToString();
// Casting