Possible Duplicate:
Get all possible word combinations
I want to get a “power list” of a string. So given this input:
string[] s = new string[] { "a", "b", "c" } ;
The function would return:
string[] s = new string[] { "a", "b", "c", "ab", "ac", "bc", "abc" } ;
How can I do this ?
Try this: