The second contains less characters and then is a lot of compact to browse. you do not have to be compelled torepeat myClass two a lot of times, and therefore the formatting logic is in one block.
It is extremely a syntactical sugar that does not modification a factor within the generated code. If you does not love it, you'll be able to forever disable the warning on ReSharper.
A longer post on the benefits of exploitation Object Initializers here:
It is extremely a syntactical sugar that does not modification a factor within the generated code. If you does not love it, you'll be able to forever disable the warning on ReSharper.
A longer post on the benefits of exploitation Object Initializers here: