notanaverageman / Bindables

Bindables converts your auto properties into Wpf dependency or attached properties.
MIT License
52 stars 9 forks source link

Generate nullable-aware properties #25

Closed Nextra closed 2 years ago

Nextra commented 2 years ago

This changes the output for property getters/setters to use NullableFlowState.MaybeNull, which automatically appends ? to reference types.

Generated files need to explicitly opt-in to nullable behavior, so #nullable enable is added to all output.

The generation changes are applied to Forms aswell, I hope/believe this should be fine.

This also contains updates to the readme to reflect both the nullable changes, and the changes performed in #24.

notanaverageman commented 2 years ago

Thanks @Nextra! Version 1.2.0 with these changes should be available in a few minutes.