When you pass an variable into an object during instantiation, such as in
SomeObject newObject = new SomeObject() { SomeString = "String goes here" };
Will the variable SomeString be accessible in the constructor or will it be assigned afterwards? If I needed to use it in the constructor, would it work or would I need to pass it through as a parameter using
new SomeObject("String goes here");
It will be assigned afterwards.
is roughly equivalent/syntactic sugar to: