MapsterMapper/Mapster

Tweaking null propagation easily

Aberta

#740 aberto em 11 de dez. de 2024

 (3 comentários) (0 reação) (0 responsável)C# (312 forks)batch import
help wantedimprovement

Métricas do repositório

Stars
 (3.995 estrelas)
Métricas de merge de PR
 (Mesclagem média 12d 15h) (10 fundiu PRs em 30d)

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)

Guia do colaborador