title: using a loop get unique values form a list then add another value
body: <p>Considering the following code is it possible to use a loop to add a common service to each unique machine.</p>
  
  <pre><code>internal static List&lt;MyClass&gt; Mc = new List&lt;MyClass&gt;();
  
  public class MyClass : OtherClass
      {
          public string Machine { get; set; }
          public string Service { get; set; }
  
          public void AddProcessDetails()
          {
              Mc.Add(new MyClass { Machine = server1, Service = "notepad" });
              Mc.Add(new MyClass { Machine = server2, Service = "notepad" });
              Mc.Add(new MyClass { Machine = server2, Service = "foo" });
          }
  </code></pre>
  
  <p>So if there is a common service called “bar”, how can I loop thorough this list, get each unique machine name then add that machine name and service to the list?</p>