2

这是 valueinjecter 文档(http://valueinjecter.codeplex.com/documentation),但我不是这样

清楚这些术语,flattening/unflattening ,FlatLoop/UnFlatLoop ...,我怎么能

理解这些更容易吗?

谢谢 !

4

1 回答 1

2

flatloop 会这样做:

flat.InjectFrom<FlatLoopValueInjection>(unflat);

//same as doing
flat.HeythereHowareYou = unflat.Hey.ther.How.are.You

flat.abcde = unflat.abc.d.e

反之亦然

unflat.InjectFrom<UnflatLoopValueInjection>(flat);

//same as doing
unflat.very.big.object.nesting = flat.verybigobjectnesting

unflat.a.b.c.d.e = flat.abcde

希望你会喜欢我解释事情的方式:)

于 2012-05-05T20:27:06.030 回答