MapsterMapper/Mapster

Is there going to be a [MaxDepth] attribute?

开放

#550 创建于 2023年2月22日

 (1 条评论) (0 个反应) (0 位负责人)C# (312 个派生)batch import
good first issueimprovementopen for PR

仓库指标

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

描述

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[]
}

贡献者指南