ArchUnitNET icon indicating copy to clipboard operation
ArchUnitNET copied to clipboard

How to check if a property type is nullable

Open Auties00 opened this issue 6 months ago • 1 comments

Hello, I'd like to check if a property type is nullable, but I don't think it's currently possible because of this PR which was merged a year ago. Maybe it makes sense to add an IsNullable property to IType so that the attribute still gets filtered and doesn't create conflict with other functions of the library, but you can still check if the type is nullable?

Auties00 avatar Jul 31 '25 11:07 Auties00

Hi @Auties00, with nullable, do you mean the C#8 nullable types? (e.g. int?)

alexanderlinne avatar Sep 26 '25 07:09 alexanderlinne