5
What is the difference between these statements:
Classex xx = new Classex();
var xx = new Classex();
Classex xx;
If in the end I can use everything in the same way (methods, properties...)
Ex.:
I create a list: List<Classex> lstx = new List<Classex>();
I add some values: lstx.Add(...)
Then I want to take some values from this list and insert in another, what is the best way to do:
var lstx_filtrada = new List<Classex>;,
List<Classex> lstx_filtrada= new List<Classex>;
List<Classex> lstx_filtrada;