see (didn't verify, so I have no idea if they work, :-))Combinatorial algorithms in C#
http://www.codeproject.com/csharp/combinatorial_in_csharp.asp(also see the whole thread)
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=27o2rk%24m5g%40crcnis1.unl.edu