I am using nullable reference types on a Pulumi IaC project where I use the builder pattern. But find it difficult to get dotnet to figure out when items are not null.
The Builder Pattern is a delayed constructor.
The things it is supposed to build will be null until the Build() method has been executed.
But after Build they won't be null.
I try to help by using MemberNotNull attributes but that seems to just kick the can down the road only level.
I am using nullable reference types on a Pulumi IaC project where I use the builder pattern. But find it difficult to get dotnet to figure out when items are not null.
The Builder Pattern is a delayed constructor.
The things it is supposed to build will be null until the
Build()method has been executed.But after
Buildthey won't be null.I try to help by using
MemberNotNullattributes but that seems to just kick the can down the road only level.