What's the return type of an anonymous class

前端 未结 7 2371
再見小時候
再見小時候 2020-12-11 09:28

I have a class that used to have a string return type. Now I find I need to return more than a string. I was thinking to return something like below:

public          


        
7条回答
  •  臣服心动
    2020-12-11 10:30

    Anonymous type are class type that are derived directly from object.

    You can return it from method as object as return type. Have a look at this.

提交回复
热议问题