using System.Collections.Generic;
public static void Main()
List<string> char_list = new List<string>();
for (int i = 0; i < str.Length; i++)
char_list.Add(str[i].ToString());
foreach (var permutation in new Combinatorics.Collections.Permutations<string>(char_list))
Console.WriteLine(String.Join("", permutation));