codecentric / net_automatic_interface

.Net Source Generator for Automatic Interfaces
MIT License
62 stars 14 forks source link

Added support for nullable reference types #16

Closed Frederik91 closed 1 year ago

Frederik91 commented 1 year ago

In order to use nullable reference types in the generated files, it is necessary to include the #nullable enable directive at the top of each file. This code checks for the presence of nullable types (indicated by the ? symbol) in the method and property declarations, and adds the #nullable enable directive at the beginning of the file if any are detected."

ChristianSauer commented 1 year ago

Hi, can you please also add a test case?

ChristianSauer commented 1 year ago

I think this has been superseded by 1.5.0?

Frederik91 commented 1 year ago

Hi. Sorry for the late reply. I did include a test case in my PR.

Yes, version 1.5.0 seems to do the same thing, thanks!