Questions tagged as 'c#'

3
answers

What is the System.Linq in C #?

I asked this question here in SOPT What is the equivalent of PHP's array_map in C #? And I was curious to know what this System.Linq is about. Because when I tried to use the above response code without using it, I got an error...
asked by 27.04.2016 / 17:48
4
answers

How does C # lock work?

I was checking out an MSDN article, but it was not clear why use this. class Account { decimal balance; private Object thisLock = new Object(); public void Withdraw(decimal amount) { lock (thisLock) {...
asked by 12.08.2014 / 17:41
2
answers

Best practice to log system log

What is the best practice for registering a log system? public void inserirLog(string Acao) { StringBuilder csql = new StringBuilder(); csql.Append("insert into Log (Acao,data) values("); csql.Append(@"""...
asked by 26.02.2015 / 19:26
2
answers

+ 3 overloads - What would that be?

asked by 26.06.2016 / 12:04
3
answers

ASP.Net MVC or WebAPI?

What is the advantage of using MVC and WebAPI (using Visual Studio and C #)? I think developing in MVC is easier than putting together a form with validations, so just put special attributes for this purpose and use the Wizard that already as...
asked by 02.02.2015 / 14:54
3
answers

Can I remove all the use I'm not using?

I took a project here ASP.NET C # and I realize I can pull several "using". Can I exit by removing these using or not? Does using that is not used in class can be used by someone who is using class ? No, right?...
asked by 12.01.2017 / 14:10
3
answers

Difference between Any, Contains and Exists

What is the difference between Any , Contains and Exists ? What is the appropriate context for each of them? (Examples of use) What are the advantages and disadvantages?     
asked by 10.12.2015 / 13:29
2
answers

What is the difference between IsNullOrEmpty and IsNullOrWhiteSpace?

I have here that there is no practical difference between String.Empty and "" , and then it came to me doubt. What's the difference between using String.IsNullOrEmpty(String) and String.IsNullOrWhiteSpace(String) ?...
asked by 20.12.2016 / 22:30
5
answers

What is the difference between an explicit cast and the as operator?

Always when I convert an object to a specific type, I use an explicit cast , for example: private void textBox1_Leave(object sender, EventArgs e) { TextBox textBoxTemp = (TextBox)sender; MessageBox.Show("Você digitou: " + textBoxTemp....
asked by 22.01.2015 / 19:21
1
answer

What is the way in which applications made in C # Windows Forms are updated, having version control?

What would be the step-by-step of such an upgrade so that the software after going through some change or upgrade does this reflect systems that have the same software?     
asked by 09.05.2014 / 02:20