Given the code below, what is the difference between the way position0 is initialized and the way position1 is initialized? Are they equivalent?
position0
position1
They are equivalent, apart from one being easier to read than the other one.
Also consider the case when you want to pass the new object along to somewhere else:
var aList = new List(); aList.Add( new Position() { x=3, y=4 } );