خرید بک لینک

Vote count: 0

I'm trying to convert Colon Separated String to a PowerShell Dictionary. Following are the strings.

$inputkeyvalues = "Appsetting:true|environment:prod"

I have two key value pairs's in the $inputkeyvalues variable and those are separated by pipe delimiter. first one is: Appsetting:true second one is: environment:prod

and I'm trying to convert to PowerShell dictionary. The final output should be something like,

Key            Value
-----         -----
Appsetting     true
environment    prod

$Dictionary= New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]"

Can someone please suggest me possible solution for this. Thanks in advance.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 30 تير 1395 ساعت: 7:51

صفحه بندی