Posts by Gabriel de Almeida Alves Pinto • 13 points
5 posts
-
-1
votes0
answers15
viewsQ: I’m having difficulty reading an XML file and modifying it
I am creating a routine that will automatically change host configuration files in C# However I’m not sure how to handle the file . config which is actually an xml: XML (file . config) <?xml…
-
-1
votes2
answers72
viewsA: Initialize object with defined type without specifying each value
Thank you for the comment of Rafael Tavares who has the answer here at Stackoverflow and solved my problem. I adopted this pattern to initialize objects carroSelecionado = {} as Carro;…
-
0
votes1
answer31
viewsA: Pause display of a function
Friend Voce can look at the clearInterval as Rafel Tavares said https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval#examples Or something as simple as a variable:…
-
-1
votes2
answers72
viewsQ: Initialize object with defined type without specifying each value
I would like to initialize an object without setting each value in Typescript Let’s simulate a simple situation where we have the Car Object: export interface Carro { QuantidadePortas: number,…
-
0
votes1
answer124
viewsQ: Initialize variable with Typescript defined interface
I’m dealing with Angular and maintaining an older version code. Currently, when we need to define the parameters of an object in Typescript, we use an interface: export interface…