Posts by Gabriel Faria • 54 points
3 posts
-
0
votes0
answers46
viewsQ: Aspnet Core Synchronization Context (deadlock)
I had a problem with deadlock in my code in . Net framework, follows below the excerpt from it: public IHttpActionResult Get() { AsyncCall().Wait(); return Ok("Ok"); } private async Task…
-
2
votes3
answers1877
viewsA: List a range of numbers and add one by one
You can use the function sum the code would be that: print(sum([1,2,3])) separated by variables: lista = [1,2,3] soma = sum(lista) print(soma)…
-
1
votes2
answers173
viewsA: How to read only one line from a file in c#
You first have to select all rows and then by index choose which one you want var file = new StreamReader(caminhoArquivo); string[] linhas = File.ReadAllLines(caminhoArquivo); var textoDesejado =…