title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
Monday, July 15, 2013 | |
SA1111: ClosingParenthesisMustBeOnLineOfLastParameter: Cause The closing parenthesis or bracket in a call to a C# method or indexer, or the declaration of a method or indexer, is not placed on the same line as the last parameter. So far, my least favorite StyleCop rule, surprisingly enough. I can grin and bear most, but this one seems to conflate the end of the statement with the last param or chained call preceding it. 1 var myQuery = this.Session.QueryOver<Table>()
2 .Where(abbre => abbre.AnotherTable.Id == this.someId)
3 .JoinQueryOver(abbre => abbre.AnotherTableStill)
4 .JoinQueryOver(ope => ope.YesAnotherTable)
5 .JoinAlias(abbre2 => abbre2.More, () => someAlias)
6 .Where(() => someAlias.JiveField.IsIn(someArray))
7 .SelectList(list => list
8 .Select(abbre => abbre.Id)
9 .Select(abbre => abbre.ApplicantFirstName)
10 .Select(() => someAlias.JiveField) // I want him on his own line.
11 );
posted by ruffin at 7/15/2013 02:20:00 PM |
|
| |
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
![]() |
|
|