Click here to Skip to main content
15,396,257 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: C Sharps - how are you getting on with nullable reference types? Pin
lmoelleb16-Dec-20 7:07
Memberlmoelleb16-Dec-20 7:07 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Jörgen Andersson16-Dec-20 4:27
professionalJörgen Andersson16-Dec-20 4:27 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Gerry Schmitz16-Dec-20 5:32
mveGerry Schmitz16-Dec-20 5:32 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
lmoelleb16-Dec-20 7:24
Memberlmoelleb16-Dec-20 7:24 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
harold aptroot16-Dec-20 20:24
Memberharold aptroot16-Dec-20 20:24 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Lorenzo Bertolino16-Dec-20 20:36
professionalLorenzo Bertolino16-Dec-20 20:36 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Mark Quennell16-Dec-20 22:32
MemberMark Quennell16-Dec-20 22:32 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Rob Philpott16-Dec-20 22:41
MemberRob Philpott16-Dec-20 22:41 
How does this work?

So a string in the normal way can be null, but with nrt turned on will not accept null. This creates an ambiguity, so a string in something like an interface - a strict definition of properties and methods etc. can suddenly become ambiguous depending on the nrt context.

I'm struggling to see how this works in the framework and libraries. Well worn methods that have been around decades which return string but should now return string?. It's almost like you'd need two frameworks, one enabled for NRT and one not.

I don't get it. But I have decided to turn it on, and it'll all probably make sense soon.
Regards,
Rob Philpott.

GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Mark Quennell16-Dec-20 22:50
MemberMark Quennell16-Dec-20 22:50 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Rob Philpott16-Dec-20 23:01
MemberRob Philpott16-Dec-20 23:01 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Mark Quennell16-Dec-20 23:09
MemberMark Quennell16-Dec-20 23:09 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Rob Philpott16-Dec-20 23:18
MemberRob Philpott16-Dec-20 23:18 
GeneralRe: C Sharps - how are you getting on with nullable reference types? Pin
Mark Quennell16-Dec-20 23:22
MemberMark Quennell16-Dec-20 23:22 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Thornik17-Dec-20 8:32
MemberThornik17-Dec-20 8:32 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
zezba900018-Dec-20 11:02
Memberzezba900018-Dec-20 11:02 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
AnotherKen18-Dec-20 20:08
professionalAnotherKen18-Dec-20 20:08 
AnswerRe: C Sharps - how are you getting on with nullable reference types? Pin
Adam David Hill27-Dec-20 3:02
professionalAdam David Hill27-Dec-20 3:02 
GeneralI have the feeling they do it on purpose... Pin
Kornfeld Eliyahu Peter15-Dec-20 22:00
professionalKornfeld Eliyahu Peter15-Dec-20 22:00 
GeneralRe: I have the feeling they do it on purpose... Pin
W Balboos, GHB16-Dec-20 2:51
mveW Balboos, GHB16-Dec-20 2:51 
GeneralWSO CCC OTD 2020-12-16 Pin
Sandeep Mewara15-Dec-20 20:52
mveSandeep Mewara15-Dec-20 20:52 
GeneralRe: WSO CCC OTD 2020-12-16 - You win! Pin
OriginalGriff16-Dec-20 0:57
mveOriginalGriff16-Dec-20 0:57 
GeneralOne of the things I love about CP... Pin
Marc Clifton15-Dec-20 10:33
mvaMarc Clifton15-Dec-20 10:33 
GeneralRe: One of the things I love about CP... Pin
BillWoodruff15-Dec-20 11:44
mveBillWoodruff15-Dec-20 11:44 
GeneralRe: One of the things I love about CP... Pin
CodeWraith15-Dec-20 11:50
MemberCodeWraith15-Dec-20 11:50 
GeneralRe: One of the things I love about CP... Pin
Cp-Coder15-Dec-20 15:25
MemberCp-Coder15-Dec-20 15:25 

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

Do you expect users to read the instructions when using your apps?
  Results   135 votes