using System.Collections.Generic;
public static bool IsAnagram(string phrase1, string phrase2)
public static void Main()
PrintIsAnagram("Hello World", "Hollow Red");
PrintIsAnagram("Hello World", "Droll Whole");
PrintIsAnagram("Dormitory", "Dirty Room");
public static void PrintIsAnagram(string phrase1, string phrase2)
Console.WriteLine(String.Format("{0} {1} an anagram of {2}", phrase1, IsAnagram(phrase1, phrase2) ? "is" : "is not", phrase2));