MapsterMapper/Mapster

Is there going to be a [MaxDepth] attribute?

オープン

#550 opened on 2023/02/22

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (312 件のフォーク)batch import
good first issueimprovementopen for PR

Repository metrics

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

説明

Say I have a Class that has 3 Arrays of Classes on it, each has another 2 Arrays of classes on it and the final has 1 Array of class on it
And I want to get 3 deep on Class2, 2 deep on class3 and 1 deep on class4
i.e.

Class1 {
     [MaxDepth(3)]
     Class2[]
     [MaxDepth(2)]
     Class3[]
     [MaxDepth(1)]
     Class4[]
}

Class2 {
    Class5[]
    Class6[]
}

Class3 {
    Class5[]
    Class6[]
}

Class4 {
     Class5[]
     Class6[]
}

Class 5 {
    Class8[]
}

Class 6 {
    Class[9]
}

Class 7 {
    Class10[]
}

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