[SOLVED]Readonly Nullable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED]Readonly Nullable

Is there a way to implement double as readonly and nullable like in the Code below? Nullable<readonly double> example; This code isn't working. Thanks for you answers!

8th Jan 2020, 8:33 PM
ExampleWasTaken
ExampleWasTaken - avatar
4 Answers
+ 1
Thank you very much!
9th Jan 2020, 5:31 AM
ExampleWasTaken
ExampleWasTaken - avatar
0
Jamie💐 Unfortunately neither were accepted as I checked in Playground, dunno why.
9th Jan 2020, 2:52 AM
Ipang
0
Jamie💐 I copy and pasted those lines in Playground (in Main of a new C# code), and I only removed the "or" in between; and I got warning for both lines ...
9th Jan 2020, 2:57 AM
Ipang
0
Jamie💐 Looks like I need to have another go on readonly articles, I thought only static readonly is like that 👌
9th Jan 2020, 3:02 AM
Ipang