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) ?...
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....
It is common to see examples of methods returning one value at a time. I've seen cases where you need to create a class just to package the data and to return more values.
Using generic classes would be the best way to return 2 or more
Recently (ok, already a couple of months ago) I've been interacting with language F # , which is Microsoft's response to providing a functional programming language on the .NET platform.
But it has not been clear to me the real cases and...
There seems to be some confusion with the naming of the C # versions and the technologies that are related to it.
Is there a C # 2005? Or a C # 3.5? What is the relationship of C # versions with .Net, Visual Studio, etc.?
There are books...
I have a question that I can not find a convincing answer.
There is an application developed in Delphi 7, and in an extremely complex routine (which takes about 2 hours) we noticed that only the first processor core is used, in this case an I...
I have a list:
List<int> lista1 = new List<int>();
List<int> lista2 = new List<int>();
To get from lista1 elements that also exist in...
I'm developing an application in C # and would like to know how to merge two results from two queries into one. I have the following code:
public List<MalaDireta> ObterMalaDireta()
List<MalaDireta> resultado = new List&...