MapsterMapper/Mapster

Tweaking null propagation easily

Aperta

#740 aperta il 11 dic 2024

 (3 commenti) (0 reazioni) (0 assegnatari)C# (312 fork)batch import
help wantedimprovement

Metriche repository

Star
 (3995 stelle)
Metriche merge PR
 (Merge medio 12g 15h) (10 PR mergiate in 30 g)

Descrizione

Is there an easy way to change how null propagation works?

  1. If we wanted to throw an exception when null reference encountered? There are lots of various Ignore methods, similarly I wish there were Required methods or maybe an ThrowIfNull argument to be passed in
  2. If null encountered, use a provided value (I know atm it uses default or null value)

Guida contributor