Click here to Skip to main content
15,887,596 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
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 
A couple of possibly interesting bits of feedback, assuming that code comes from here:

- Adding it to a WinForms app created with .NET Core 3.1 or .NET 5 and turning on nullable reference types finds 17 potential accidental nulls in the code from that SO post. But the Columns.AddRange call itself isn't one of them because WinForms wasn't built with NRT enabled. So the compiler decides it can't say one way or another if passing a null values argument to AddRange is okay.
- Resharper catches the potential error whether you're using .NET Core/.NET 5 or .NET Framework. It even suggests a fix. The static analysis it's doing must look at AddRange and notice that the first thing that method does is throw an exception if values is null.
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 
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 

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.