object initializer code format

the current format has extra spaces and is not very beautiful

var classA = new ClassA
             {
                 Value = new ClassB
                         {
                            Value = new ClassC
                                    {
                                       Value = "value"
                                    }
                         }
             };

var classA = new ClassA
{
   Value = new ClassB
   {
      Value = new ClassC
      {
         Value = "value"
      }
   }
};

http://weblogs.asp.net/dwahlin/archive/2007/09/09/c-3-0-features-object-initializers.aspx
Thanks.



Attachment(s):
ObjectInitializerCodeFormat.cs

Please sign in to leave a comment.