Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Improve nullability annotations on the Adapt extension method

Open hmoratopcs opened this issue 8 months ago • 0 comments

This PR introduces nullability annotations. A warning will now be triggered when attempting to map a nullable input to a non-nullable output, for example: ProductDTO dto = ((Product?)null).Adapt<ProductDTO>();

hmoratopcs avatar May 05 '25 17:05 hmoratopcs