Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

AllowImplicitDestinationInheritance(true) Combines all settings, including those that are not recommended for use by child type

オープン
#947 コメント 23 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp
領域
tooling

調査の方向性

まず、提供された C# サンプルを再現し、TypeAdapterConfig.AllowImplicitDestinationInheritance の動作を追跡します。DogDto を Dog に適応するときにどの設定が組み合わされるかを特定し、その後、子型に推奨されない設定が正しく処理されることを示すリグレッションカバレッジを追加します。

索引モデルが issue の本文から書いたものです。

説明

bug configuration problem

Sample Code:


    public class Animal { }
    public class Dog : Animal { }
    public class Bird : Animal { }


    public class AnimalDto { }
    public class DogDto : AnimalDto { }
    public class BirdDto : AnimalDto { }

    class Program
    {
        static void Main(string[] args)
        {
            var config = new TypeAdapterConfig();
            config.NewConfig<AnimalDto, Animal>().MapWith((s) => s is BirdDto ? new Bird() : new Dog());
            config.AllowImplicitDestinationInheritance = true;

            var d = new DogDto();
            var a = d.Adapt<Dog>(config);
        }
    }
主要言語
C#
スター
5.2k
フォーク
411
平均マージ
1日 8時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MapsterMapper/Mapster のほかの issue

MapsterMapper/Mapster の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。