Click here to Skip to main content
15,890,579 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
musefan16-Feb-21 6:06
musefan16-Feb-21 6:06 
GeneralRe: Another reason I don't like LINQ Pin
obermd16-Feb-21 6:13
obermd16-Feb-21 6:13 
GeneralRe: Another reason I don't like LINQ Pin
Gerry Schmitz16-Feb-21 6:35
mveGerry Schmitz16-Feb-21 6:35 
GeneralRe: Another reason I don't like LINQ Pin
Marc Clifton16-Feb-21 11:13
mvaMarc Clifton16-Feb-21 11:13 
GeneralRe: Another reason I don't like LINQ Pin
Matthew Dennis16-Feb-21 7:41
sysadminMatthew Dennis16-Feb-21 7:41 
GeneralRe: Another reason I don't like LINQ Pin
honey the codewitch16-Feb-21 7:48
mvahoney the codewitch16-Feb-21 7:48 
GeneralRe: Another reason I don't like LINQ Pin
Slacker00716-Feb-21 9:06
professionalSlacker00716-Feb-21 9:06 
GeneralRe: Another reason I don't like LINQ Pin
Richard Deeming16-Feb-21 22:28
mveRichard Deeming16-Feb-21 22:28 
Matthew Dennis wrote:
It is missing some Elvis operators
It's not. If the FirstOrDefault returns null, the GetProperties and subsequent calls won't execute. If it returns non-null, GetProperties will never return null:
Returns
An array of PropertyInfo objects representing all public properties of the current Type.
-or-
An empty array of type PropertyInfo, if the current Type does not have public properties.
Similarly, Where will never return null. If the input sequence is null, it will throw an exception. If the input sequence is empty, or there are no matching elements, it will return an empty sequence.

And the same applies to Select - it will either throw an exception, or return a non-null sequence.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Another reason I don't like LINQ Pin
Matthew Dennis16-Feb-21 23:04
sysadminMatthew Dennis16-Feb-21 23:04 
GeneralRe: Another reason I don't like LINQ Pin
Richard Deeming16-Feb-21 23:28
mveRichard Deeming16-Feb-21 23:28 
GeneralRe: Another reason I don't like LINQ Pin
Matthew Dennis17-Feb-21 4:51
sysadminMatthew Dennis17-Feb-21 4:51 
GeneralRe: Another reason I don't like LINQ Pin
Matthew Dennis17-Feb-21 5:43
sysadminMatthew Dennis17-Feb-21 5:43 
QuestionRe: Another reason I don't like LINQ Pin
Maximilien16-Feb-21 7:44
Maximilien16-Feb-21 7:44 
AnswerRe: Another reason I don't like LINQ Pin
honey the codewitch16-Feb-21 7:48
mvahoney the codewitch16-Feb-21 7:48 
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 
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 

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.