[DevExpress Support Team: CLONED FROM T538933: Code Formatter - How do I get what I'm looking for with a compound statement?]
For instance, what I want is:
C#MyServiceRequest request = new MyServiceRequest()
{
InvoiceId = myInvoiceId,
MyStuffArray = calculatedStuff
.Select(myItem => new MyStuff()
{
StuffId = myItem.StuffId,
ProductLookupId = myItem.ProductLookupId,
})
.ToArray(),
};
The closest I can get after playing with the formatting settings is:
C#MyServiceRequest request = new MyServiceRequest()
{
InvoiceId = myInvoiceId,
MyStuffArray = calculatedStuff
.Select(myItem =>
new MyStuff()
{
StuffId = myItem.StuffId,
ProductLookupId = myItem.ProductLookupId,
})
.ToArray(),
};
.ToArray should be chaining with .Select, and should be indented at the same level as .Select.
Hi Jason,
Thanks for the code snippet.
We are working on it. Please give us some time to research the issue in detail.