how to initialize dictionary as (key,value,value) pair in C#

后端 未结 9 1149
悲&欢浪女
悲&欢浪女 2020-12-31 11:37

I want to store values as key,value,value pair. My data is of type

Key -> int & both values -> ulong,

How to initialize & fet

9条回答
  •  灰色年华
    2020-12-31 12:09

    In C# 4, you'll have the Tuple type for your value, value pair.

    There's an MSDN article describing the type and the design decisions behind it.

提交回复
热议问题