Questions tagged as 'c#'

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
2
answers

ASP.NET Identity and Windows Identity Foundation (WIF)?

Once again talking about ASP.NET Identity . There is another theme within the same subject that I believe to be of great importance to the community (especially to me, the main stakeholder). This is Windows Identity Foundation (WIF). What i...
asked by 19.05.2014 / 19:04
4
answers

Create Windows Self-Upgradable Service

I would like to know the recommended procedure for a Windows service to self-update. The main questions are: After the service download a new version of it, how to stop the service and restart it with the new version? What procedures do...
asked by 08.10.2015 / 20:31
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
2
answers

Redirect from Http to Https in Owin + OAuth + ExternalLogin

In the Host where my application is hosted, it uses ARR to redirect all pages to Https . The problem is that in the way that the code for asp.net mvc is configured, it means that the request is http , even though it is h...
asked by 22.10.2015 / 19:56
1
answer

Is creating local variables all the time generating extra cost for the software?

I made a program that it writes to variables all the time, and with that I got a doubt, instantiating a variable all the time generates more cost than just assigning the value to an existing variable? Examples: Instantiating a variable all...
asked by 30.07.2017 / 14:16
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