MapsterMapper/Mapster

Tweaking null propagation easily

开放

#740 创建于 2024年12月11日

 (3 条评论) (0 个反应) (0 位负责人)C# (312 个派生)batch import
help wantedimprovement

仓库指标

星标
 (3,995 个星标)
PR 合并指标
 (平均合并 12天 15小时) (30 天内合并 10 个 PR)

描述

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)

贡献者指南