Replies: 5 comments
-
Happy to see that change. I've ran into this: foreach (var (key, value) in parameters)
{
if (key == "name")
Name = value;
}
if (Name is null) throw new Exception("No name in parameters!"); I had to assign the value to a variable inside loop, and assign it to the property after null check in the non-branch route.
In practice, a big advantage of
Anonymous types use
I wonder the future with non-defaultable value types. It's quite a mess around |
Beta Was this translation helpful? Give feedback.
-
Nice to see that you are considering improvements to nullable analysis in constructors, but the problem I mentioned in #2830 seems to still be unadressed. |
Beta Was this translation helpful? Give feedback.
-
Very glad to see the |
Beta Was this translation helpful? Give feedback.
-
We're looking at required properties to solve nullable initialization issues. |
Beta Was this translation helpful? Give feedback.
-
@333fred Great to hear that you are working on it! I would really like to enable nullable in my web projects, but until we have a solution for that problem it is not worth it IMO. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-07-27.md
Agenda:
==
and!=
) in records.ToString()
orGetDebuggerDisplay()
on records?T t = default;
for genericT
, now you can writeT?
?Beta Was this translation helpful? Give feedback.
All reactions