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)

貢獻者指南