Replies: 2 comments 1 reply
-
public int Prop
{
get;
private init;
set => SetAndNotifyIfChanged(ref field, value);
} Not the worst thing ever, but I'd be a bit concerned about the implicit nature of it. I'm guessing the init would have higher priority and be called in any context where it's allowed to be called. As such the behavior is unambiguous, but I'm pretty sure it'd cost someone a lot of hours of frustration at some point. |
Beta Was this translation helpful? Give feedback.
-
public int Prop
{
get;
private init;
set => SetAndNotifyIfChanged(ref field, value);
} That would be so good, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2025/LDM-2025-01-15.md
Agenda
fieldof
Beta Was this translation helpful? Give feedback.
All reactions