Question: We can extract distinct value set from a list by using following code

```
List<Person> distinctPeople = allPeople
  .GroupBy(p => new {p.PersonId, p.FavoriteColor} )
  .Select(g => g.First())
  .ToList();

```

Assume person has PersonId, FavoriteColor, age, address, etc..... My requirement is I would like to get a separate list which should contain distinct filter data only such as PersonId, FavoriteColor not others. What is the command for that, Assume I can create a small class which contain PersonId, FavoriteColor only

Answer: 
I am writing this for other people who might run into the same problem like me in the future. Apparently as Mr. Leonardo as pointed out, HTML e-mails doesn't read the external or even internal css at all because the head part of the template are opted out and only body part are used. Thus the solution is to use table and html attributes with inline css to style the html email template. 

Thanks
The one way is to use inline css in the code, 

```
 <div class="pre"><strong>Title,</strong>&nbsp;</div>
<div class="pre">&nbsp;</div>
<blockquote>
<div class="pre">Message part</div>
</blockquote>
<div class="pre">&nbsp;</div>
<div class="pre"><span style="background-color: #800080;">Thanks</span>,<br /> <br />

</div>
</div>

```

It works for me..