Questions tagged as 'c#'

1
answer

Problem with deserializing json with $

Follow json's code: { "_id": { "$oid": "5b0f4a926724c71d945299f9" }, "_class": "notificador.domain.entity.mongodb.WebhookNotification", "externalId": "EVE-XXXXXXXXXXXX", "resourceId": "TRA-XXXXXXXXXXXX", "accountId": "MPA-XXXXX...
asked by 17.11.2018 / 01:09
1
answer

AsParallel () .ForAll vs async await

When using AsParallel().ForAll , and when to use async await ? I'm providing an example with a download routine and a file manipulation routine. AsParallel().ForAll performs better in parallel download operation. as...
asked by 14.11.2018 / 17:59
1
answer

TimeZone from Brazil for DateTimeOffset C #

I would like to know what possible TimeZones are available for all regions of Brazil. I saw that we have E. South America Standard Time for Brasilia time, but for example, what would Timezone be in Acre?     
asked by 14.11.2018 / 18:49
2
answers

Change tab of the TabControl

I'm creating a WindowsForm form and I'm using a TabControl and would like to create an event that would change the tab being displayed. I was able to change the content displayed with this.tabForm.TabPages["nomeTab"].Show(); or tabP...
asked by 17.11.2018 / 18:26
1
answer

I can not get list of an API

This URL works on postman: link . I need now in another MVC project to bring the list of cities. When I do this I get this error:    The template item entered in the dictionary is from   type 'System.Threading.Tasks.Task 1[System.Collecti...
asked by 09.08.2018 / 18:04
1
answer

How to send FORM values to the Controller in ASP.NET MVC?

I'm new to ASP.NET and am creating an MVC application. I have, in my controller a method that works as follows: public ActionResult ShowClients(string proc) { --(proc)EXECUTA ALGUMA LOGICA AQUI return View(); } The...
asked by 13.07.2018 / 21:05
1
answer

.NET Core and Mono: development of applications for Linux

I've currently needed to develop desktop applications for Linux, and one of the requirements is that it would have to be using C # . And by researching / testing, I had two options: .NET Core or Mono . When I used Mono , I lost...
asked by 24.07.2018 / 14:14
1
answer

How to get a value using interpolation?

I'm trying to retrieve a value from a class by using tweening. Using Console.WriteLine($"Meu Nome é, {pessoa.Nome}"); , I get the value of the form I want, but in my case the string will come from a database configuration. I t...
asked by 12.07.2018 / 13:51
1
answer

JsonConvert.DeserializeObject returns null

Follow json: [ { "id":"BKA-EU8IED8ZD21Q", "agencyNumber":"1", "accountNumber":"1", "holder":{ "thirdParty":false, "taxDocument":{ "number":"783.121.360-02", "type":"C...
asked by 29.08.2018 / 23:48
1
answer

Passing a Connection string dynamically

Well my problem would be to try to pass a connection string from a txt file. which is also used to bring the items from my ComboBox, the goal and bring a different bank depending on the item selected in the ComboBox. I tried to pass the string t...
asked by 28.08.2018 / 13:55