title: remove duplicate words from string in C#
body: <p>here is my code:</p>
  
  <pre><code>class Program
      {
          static void Main(string[] args)
          {
              string sentence = string.Empty;
              sentence = Console.ReadLine();
              string[] sent = sentence.Split(' ');
              //to be sorted alphabetically
              var x =
                  from k in sent
                  orderby k
                  select k;
  
              foreach (string s in x)
              {
                      Console.WriteLine(s.ToLower());
              }
  
              Console.ReadLine();
          }
      }
  </code></pre>
  
  <p>is there any method to find and remove duplicate words or I should make my own method?</p>