hash tables in powershell

前端 未结 3 450
清酒与你
清酒与你 2021-01-18 23:36

I\'m developing an application in PowerShell. I am storing variables in a hashtable. How can I keep the order in the hashtable? I want the order to be the same as I when I f

3条回答
  •  暖寄归人
    2021-01-19 00:34

    Hashtables do not hold order. If you want order then what you want is a System.Collections.Specialized.OrderedDictionary.

提交回复
热议问题