New course! Every coder should learn Generative AI!
Try a free lesson0
[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!
4 Answers
+ 1
Thank you very much!
0
Jamie💐
Unfortunately neither were accepted as I checked in Playground, dunno why.
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 ...
0
Jamie💐
Looks like I need to have another go on readonly articles, I thought only static readonly is like that 👌