Questions tagged as '.net'

3
answers

Remove Saturdays and Sundays from Calculation

I have a project where I work with project activities, my activities have a certain time to complete, but the project has to do the calculation only with administrative days. For example, an activity starts on 10/26/2015 (Monday) and its dura...
asked by 25.10.2015 / 19:22
2
answers

Difference between .NET Framework for Entity Framework

I have an Asp.Net MVC project that when clicking properties the following information is displayed: WhenIopenedthefilepackages.configIcouldseethisotherinformation: After all, what exactly is the Target framework ? What is your function...
asked by 01.06.2016 / 20:45
2
answers

String interpolation has a better performance than string.Format?

I use Resharper and a few days ago I started using some C # 6 features. In several parts of the code I use string.Format() and I noticed that the Resharper suggests that these snippets be replaced by string interpolation . The ques...
asked by 19.10.2015 / 14:27
3
answers

Competition control in database insertion

I have a concurrency control problem when inserting data from a table. The scenario is as follows: There is a table that records daily data according to the user request, and this data can not be duplicated. The current concurrency control ch...
asked by 12.09.2014 / 15:39
2
answers

What are pointers?

I've come across this in several languages, especially C and C ++, but I've never understood what it is, how it's used, and why it exists. I discovered unintentionally that it also exists in C # and is an unsecured practice. What are pointer...
asked by 03.01.2018 / 21:47
4
answers

How can I make a code with a string work with or?

Apparently I'm having problems with strings : public partial class Form1 : Form { private int _adicionar; private int _retirar; public Form1() { InitializeComponent(); } private void _Random_Click(object send...
asked by 19.05.2016 / 15:38
4
answers

How to merge multiple text files into one?

Does anyone know how to select all text files from the same directory and merge all of them into just one final text file? Example: In the X folder, I have the 1.txt, 2.txt, and 3.txt files. I need to merge the contents of all into just one t...
asked by 22.05.2014 / 16:15
3
answers

Count or Count ()

Having a list, what is the best way to know the number of items on this list and what is the difference? if (minhaLista.Count > 0) ; or if (minhaLista.Count() > 0) ;     
asked by 07.10.2016 / 18:43
1
answer

Which sort algorithm does .NET use by default in a list?

I have a problem that I have to perform memory sorting on a large number of items and would like to know which algorithm .NET uses to sort when we call the Sort() method of a list, for example. I need to know because I realized that my...
asked by 11.10.2017 / 17:00
1
answer

What is it that allows a method to be intercepted in C #?

Intercepting a method is a technique that can be used to execute a code snippet before executing a master action. That is, in a very simplified way this would also be an example of interception: public void A(){ Console.Writeline("Estou a...
asked by 08.02.2017 / 19:55