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...
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...
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...
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...
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? >
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<>...
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 '...
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.
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...