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

前端 未结 16 2265
时光说笑
时光说笑 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:35

    I usually just create my own struct, containing the values. It's often a bit more readable ;)

提交回复
热议问题