Questions tagged as 'c#'

2
answers

How to get items from a json in C #

After almost 3 days trying to implement I was not successful. I have the following json: { "code": 200, "data": [ { "id": 1, "type": "charge", "custom_id": "1208", "status": { "current": "new", "previous": null }, "identifiers": { "charge_i...
asked by 03.12.2018 / 18:14
1
answer

How to use group by in LAMBDA

I have a Products table: int id string descricao int quant I want to do the following: select descricao, sum(quant) from produtos group by descricao How to do the above query in lambda ?     
asked by 24.04.2017 / 01:00
1
answer

GoogleLocationService problem getting latitude and longitude

Follow the code: Try 1: (It works) var address = "Osasco - SP, Brasil"; var locationService = new GoogleLocationService(); var point = locationService.GetLatLongFromAddress(address); Attempt 2: (Not working) var address = "uol - Ru...
asked by 04.01.2017 / 01:00
1
answer

Make a game in C # from scratch [closed]

I'm learning C #, and I already have enough knowledge (I think) to make a simple 2D game. But I do not want to use ANY engine. So where do I start?     
asked by 17.10.2016 / 20:27
1
answer

Object reference not set to an instance of a C #

Good afternoon, guys. I'm having a hard time solving a coding problem. When I perform an INSERT , it displays an object reference error not defined in the leitora.Tecnico.IdTecnico line. Could someone tell me what's going on? private v...
asked by 19.12.2018 / 15:18
3
answers

Remove space and string breaks in string

I'm doing a WebAPI that generates an XML, this XML is read several times a day, so on the first run it serializes all my XML and saves it to disk, and for 24h it reads from the disk instead of serializing the entire object again. I do this be...
asked by 05.05.2016 / 21:09
1
answer

Doubt in variable storage [closed]

I'm a beginner in C #, and I'm trying to save the values typed in a toolbox within the property of a Classe , but the code does not compile. Can anyone help me? Form: namespace ProgramPrestServico { public partial clas...
asked by 13.03.2018 / 12:52
1
answer

Get month value from list

I need the person to get the information and month that he wants, so I need to get this information from the list and then show the card, date, time of entry and exit, amount paid and total of the month. I was trying to Split() but I coul...
asked by 02.04.2018 / 18:25
2
answers

Method without code

Following a book, I created a windows forms application project. I put in form textBox and button . In onclick of button I get the value of textBox and the assignment to the text of form ....
asked by 09.05.2018 / 15:43
4
answers

How do I skip the "finally" block in C # when the exception is raised?

If the exception is generated, I want to know if there is a way to "skip" the execution of block finally . If there is no exception, finally executes normally. With goto did not work. Code: using System; using System.Col...
asked by 25.06.2017 / 00:54