interface property copy in c#

后端 未结 8 2213
一生所求
一生所求 2021-02-07 08:13

I\'ve been working with C# for many years now, but just come across this issue that\'s stumping me, and I really don\'t even know how to ask the question, so, to the example!

8条回答
  •  逝去的感伤
    2021-02-07 08:57

    There's no one-liner for this.

    If you do it a lot, you could look into some form of code generation, perhaps using T4 templates and Reflection.

    BTW COBOL has a statement for this: MOVE CORRESPONDING HOME TO WORK.

提交回复
热议问题