What's the best way of using a pair (triple, etc) of values as one value in C#?

前端 未结 16 2268
时光说笑
时光说笑 2021-02-07 03:00

That is, I\'d like to have a tuple of values.

The use case on my mind:

Dictionary, object>

or

<         


        
16条回答
  •  孤街浪徒
    2021-02-07 03:28

    One simple solution has no been mentioned yet. You can also just use a List. It's built in, efficient and easy to use. Granted, it looks a bit weird at first, but it does its job perfectly, especially for a larger count of elements.

提交回复
热议问题