using System.Xml.Linq;
public class Example
{
public static void Main()
{
Console.Write("<< Distinct 예제 >> \n");
string[] words = { "this", "code", "killer", "killer", "code", "funny" };
IEnumerable<string> query = from planet in words.Distinct()
select planet;
foreach (var str in query)
{
Console.WriteLine(str);
}
Console.WriteLine(System.Environment.NewLine);
Console.WriteLine("Press any key to exit");
Console.ReadKey();
}
}