Questions tagged as '.net'

1
answer

How to make the application wait for a while?

It is common to have situations that we need to delay the execution of the code for a period, either to show or delete a message or something visual soon after, either to try something again, wait for something in a test or something creative th...
asked by 09.09.2015 / 16:55
2
answers

How to edit a list in C #?

I want to edit a customer record in which I can already create a record, consult and remove it. But I have no idea how to edit just a few items without losing others. class Program { static List<Cliente> ClienteList = new List<Cli...
asked by 15.12.2014 / 12:42
2
answers

How to leave an invisible TabPage inside a TabControl?

How can I make a particular TabPage invisible inside a TabControl?     
asked by 13.05.2015 / 21:28
2
answers

New functionality of C # 6 "Auto-property initializers" is just a facilitator?

One of the new C # 6 is the ability to initialize properties at the time of declaration. public class Customer { public string First { get; set; } = "Jane"; public string Last { get; set; } = "Doe"; } The goal is just to make it e...
asked by 15.01.2016 / 16:14
2
answers

Lambda GroupBy by year and month

I have a list of events, and I would like to group them by year and month, for example [Year 2017] Month January  {Event 1, Event 2, Event 2} Month February  {Event 3} [Year 2018] Month January  {Event 4, Event 5} I'm us...
asked by 11.01.2017 / 20:43
1
answer

What would a NuGet be?

I noticed that in several programs and in several places they use NuGet , I even had to use one myself, but I used it without knowing the definition of it, can I say that it would be an extension? >     
asked by 22.03.2018 / 12:37
2
answers

Optimize foreach

I need to check if listaContrato items exist in listaPendencia , if there is no enable to false to be disabled on the screen. What can I do to improve the performance of foreach below? Both lists are List<>...
asked by 10.11.2016 / 15:18
1
answer

What is the method group?

Coding in C # I ended up making a mistake, maybe because of familiarity with other languages I usually work with, and I forgot the parentheses. string.Concat(numero.ToString, "A") I received the following error:    can not convert from '...
asked by 14.03.2017 / 13:13
3
answers

What is and what is the Target Framework server for?

I worked for some time with .NET and was asked about the target framework of my projects. I understand what it is for but I did not know how to explain it in a simple and clear way exactly what it is.     
asked by 08.08.2017 / 16:14
1
answer

How to remove the last number from an integer?

How can I remove the last number from an integer? Ex: int value = 123456789; int newValue = 12345678; Note that the new value does not have 9. I know it would be possible to change to a string and use the substring (), but I...
asked by 24.08.2017 / 14:54