Anonymous type collections?

前端 未结 7 1262
醉梦人生
醉梦人生 2021-01-05 02:47

I am looking for best practices for creating collections made from anonymous types.

There are several approaches - this one and most answers on this thread assume th

7条回答
  •  清歌不尽
    2021-01-05 03:17

    You can create collection like this

    private IList<(string Name, bool listenToQueue)> _listeners;

提交回复
热议问题