MapsterMapper/Mapster

Tweaking null propagation easily

Ouverte

#740 ouverte le 11 déc. 2024

 (3 commentaires) (0 réaction) (0 personne assignée)C# (312 forks)batch import
help wantedimprovement

Métriques du dépôt

Stars
 (3 995 étoiles)
Métriques de merge PR
 (Merge moyen 12j 15h) (10 PRs mergées en 30 j)

Description

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)

Guide contributeur