阅读背景:

从另一个对象分配新对象值

来源:互联网 

I have an ObjectA whose property values will always be assigned to another object's (ObjectB) properites. What I have been doing is to have a service class instantiate the receiveing ObjectB and then assign the values to the new object from ObjectA. Should I instead be sending the entire objectA directly to Object B in a setter parameter or other method? What are best practices here if any?I have an ObjectA whose property values will al




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: