Menu

#326 C# Object Initializer Alignment

closed-invalid
None
2019-11-29
2014-12-02
Psilax
No

Formating of C# 4.0 constructors followed by an Object Initializer list lacks correct alignment of the { } brackets.

            for (int i = 0; i < categories.Length; i++)
            {
                DataModel.Calculations.SerCategory serCategory = new DataModel.Calculations.SerCategory()
                {
                    Name = categories[i],
                    MaxSERValue = categorySer[i]
                };
                calculationParameters.SERCategories.ListSERCategories.Add(serCategory);
            }

Not sure if we are missing an option at this point or if it is an exceptional behaviour

Discussion

  • Jim Pattee

    Jim Pattee - 2014-12-09

    What should the alignment look like?

     
  • Psilax

    Psilax - 2019-11-29

    Ticket can be closed

     
  • Jim Pattee

    Jim Pattee - 2019-11-29
    • status: open --> closed-invalid
    • assigned_to: Jim Pattee
     

Log in to post a comment.