Click here to Skip to main content
15,897,291 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Another reason I don't like LINQ Pin
F-ES Sitecore16-Feb-21 7:58
professionalF-ES Sitecore16-Feb-21 7:58 
GeneralRe: Another reason I don't like LINQ Pin
Ryan Peden16-Feb-21 8:28
professionalRyan Peden16-Feb-21 8:28 
GeneralRe: Another reason I don't like LINQ Pin
Slacker00716-Feb-21 9:09
professionalSlacker00716-Feb-21 9:09 
GeneralRe: Another reason I don't like LINQ Pin
Jörgen Andersson16-Feb-21 9:55
professionalJörgen Andersson16-Feb-21 9:55 
GeneralRe: Another reason I don't like LINQ Pin
Richard Deeming16-Feb-21 22:31
mveRichard Deeming16-Feb-21 22:31 
GeneralRe: Another reason I don't like LINQ Pin
honey the codewitch17-Feb-21 0:57
mvahoney the codewitch17-Feb-21 0:57 
GeneralRe: Squirrel From Another Dimension Pin
raddevus16-Feb-21 10:58
mvaraddevus16-Feb-21 10:58 
GeneralRe: Another reason I don't like LINQ Pin
Marc Clifton16-Feb-21 11:10
mvaMarc Clifton16-Feb-21 11:10 
p.GetCustomAttributes(true).OfType<DisplayNameAttribute>()


I believe OfType<>() is returning a null.

honey the codewitch wrote:
The LINQ isn't really that bad here.


Actually, it's rather horrific. Not to mention what looks like completely unnecessary and probably wrong FirstOrDefault() usage, the reflection usage which looks like it could be simplified, and other confusing things. And the probably useless ToArray().

honey the codewitch wrote:
even though I didn't write it


Whew! Wink | ;)

GeneralRe: Another reason I don't like LINQ Pin
Richard Deeming16-Feb-21 22:34
mveRichard Deeming16-Feb-21 22:34 
GeneralRe: Another reason I don't like LINQ Pin
honey the codewitch17-Feb-21 0:56
mvahoney the codewitch17-Feb-21 0:56 
GeneralRe: Another reason I don't like LINQ Pin
Gary R. Wheeler16-Feb-21 12:28
Gary R. Wheeler16-Feb-21 12:28 
GeneralRe: Another reason I don't like LINQ Pin
Super Lloyd16-Feb-21 13:45
Super Lloyd16-Feb-21 13:45 
GeneralRe: Another reason I don't like LINQ Pin
honey the codewitch16-Feb-21 13:48
mvahoney the codewitch16-Feb-21 13:48 
GeneralRe: Another reason I don't like LINQ Pin
Richard Deeming16-Feb-21 22:38
mveRichard Deeming16-Feb-21 22:38 
GeneralRe: Another reason I don't like LINQ Pin
honey the codewitch17-Feb-21 0:54
mvahoney the codewitch17-Feb-21 0:54 
GeneralRe: Another reason I don't like LINQ Pin
charlieg16-Feb-21 15:14
charlieg16-Feb-21 15:14 
GeneralThought of the Day Pin
OriginalGriff16-Feb-21 4:55
mveOriginalGriff16-Feb-21 4:55 
GeneralRe: Thought of the Day Pin
Mike Hankey16-Feb-21 5:05
mveMike Hankey16-Feb-21 5:05 
GeneralRe: Thought of the Day Pin
rnbergren16-Feb-21 5:15
rnbergren16-Feb-21 5:15 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer16-Feb-21 5:33
professionalDaniel Pfeffer16-Feb-21 5:33 
GeneralRe: Thought of the Day Pin
  Forogar  16-Feb-21 5:55
professional  Forogar  16-Feb-21 5:55 
GeneralRe: Thought of the Day Pin
Kris Lantz16-Feb-21 6:03
professionalKris Lantz16-Feb-21 6:03 
GeneralRe: Thought of the Day Pin
W Balboos, GHB16-Feb-21 7:12
W Balboos, GHB16-Feb-21 7:12 
GeneralRe: Thought of the Day Pin
George Swan16-Feb-21 7:19
mveGeorge Swan16-Feb-21 7:19 
GeneralRe: Thought of the Day Pin
RickZeeland16-Feb-21 7:20
mveRickZeeland16-Feb-21 7:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   27 votes