This question is locked. New answers and comments are not allowed.
I have found myself writing code like this a lot lately...
Sometimes the statements can go on a bit. So, to make it a bit more readable, I've been doing this...
(Format painter is messing with the spacing inside the {} brackets).
However, JC, when asked to format the code turns it in to this ...
I would have thought that the 2nd and subsequent lines of the LINQ statement should have been indented below the first.
Hardly the end of the world, I know, but...
--
Stuart
foldersToBeUpdated.Where(f=>blah).Select.(f=> MoreBlah).ToList().Foreach(f=> {
f.Something = somethingelse;
f.foo = bar;
});
Sometimes the statements can go on a bit. So, to make it a bit more readable, I've been doing this...
foldersToBeUpdated
.Where(f=>blah)
.Select.(f=> MoreBlah)
.ToList()
.Foreach(f=>{
f.Something = somethingelse;
f.foo = bar;
});
However, JC, when asked to format the code turns it in to this ...
foldersToBeUpdated
.Where(f=>blah)
.Select.(f=> MoreBlah)
.ToList()
.Foreach(f=>
{
f.Something = somethingelse;
f.foo = bar;
});
I would have thought that the 2nd and subsequent lines of the LINQ statement should have been indented below the first.
Hardly the end of the world, I know, but...
--
Stuart