我有一个名为list的IEnumerable列表。它包含以下示例值:
Count | Start | End ---|---|--- 1 | 0 | 10 2 | 10 | 20 3 | 20 | 30
我想随时访问并将这些Count、Start和End值分配给任何变量。我该怎么做?
Count | Start | End ---|---|--- 1 | 0 | 10 2 | 10 | 20 3 | 20 | 30
我想随时访问并将这些Count、Start和End值分配给任何变量。我该怎么做?
list[i].Count
/list[i].Start
/list[i].End
这样不行吗? - Sergey Kalinichenko