Initializing an object in Typescript

后端 未结 0 637
清歌不尽
清歌不尽 2021-01-18 18:59

In C#, if I have a class, I can initialise it like this:

var myClass = new MyClass()
{
    MyArray = someData.Select(x => new data() {aa = x.a, ab = x.b})
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题