N
Neil Chambers
Hi All,
I'm looking to see if it's feasible to use the SortObjectCommand
included in the Microsoft.Powershell.Commands assembly.
I have a Dictionary
Dictionary<string, int[,]> d = new Dictionary<string, int[,]>();
d["apples"] = new int[2,2];
d["peaches"] = new int[2,2];
Assuming we have some data in the value arrays, I would then like to
sort on the keys where d.value[1,1] is higher (for example).
There are of course a number of ways to code the sort, but I'm
interested in using the powershell assembly - I just can't fathom how
to use it in this context.
Any ideas?
cheers,
n
I'm looking to see if it's feasible to use the SortObjectCommand
included in the Microsoft.Powershell.Commands assembly.
I have a Dictionary
Dictionary<string, int[,]> d = new Dictionary<string, int[,]>();
d["apples"] = new int[2,2];
d["peaches"] = new int[2,2];
Assuming we have some data in the value arrays, I would then like to
sort on the keys where d.value[1,1] is higher (for example).
There are of course a number of ways to code the sort, but I'm
interested in using the powershell assembly - I just can't fathom how
to use it in this context.
Any ideas?
cheers,
n