MapsterMapper/Mapster

Tweaking null propagation easily

オープン

#740 opened on 2024/12/11

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)C# (312 件のフォーク)batch import
help wantedimprovement

Repository metrics

Stars
 (3,995 個のスター)
PR merge metrics
 (平均マージ 12d 15h) (30d で 10 merged PRs)

説明

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)

コントリビューターガイド