What's the difference between these statements:
Classex xx = new Classex();
var xx = new Classex();
Classex xx;
If at 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 get some values from this list and insert it into another one, which is the best way to do it:
var lstx_filtrada = new List<Classex>;,
List<Classex> lstx_filtrada= new List<Classex>;
List<Classex> lstx_filtrada;