comparing a string of arrays and build the unmatched list
<p>Update1:</p>

<p>this is all looks great but there is big problem which i have been looking for and so far i havent found that yet. -  see my comments in the code.</p>

<p>var custNames = LoadCustNames();
        var custFirstInitials = (from cn in custNames
                                 select cn.Name.Substring(0, 1).ToLower()
                                ).Distinct();</p>

<pre><code>    foreach (var item in custFirstInitials)
    {

        bool has = list.Contains(item);  
        //the above line of code return true because its checking whether `list.Contains or item.Contails` this will always return true but what i want is something sequence checking the first loop checks for A (found? true) and second loop checks for B (false) and third loop checks for C (false) .......so that i can generate ahref based on whether its return true or false.

        if (has)
        {
            //generate href
        }
        else
        {
            //disable href
        }
    }
</code></pre>

<p>i have updated my question and seems like the question was not clear..</p>

<p>so here you go....
i am trying to compare a string[] myArray with a string and if anything is unmatched then store it in a string.</p>

<p>for an example:</p>

<p>i have a list of custName starting with A, S &amp; Z and compare with myArray </p>

<pre><code>string[] myArray = { "a", "b", "c", "d", "e", "f", "g", .... "z"}; 

public class CustNames
{
    public string Name { get; set; } 
    public CustNames() { }
    public CustNames(string name) 
    { 
       Name = name;
    }
}

public List&lt;CustNames&gt; LoadCustNames()
{
    //connect to db and load the data.
    List&lt;CustNames&gt; names = new List&lt;CustNames&gt;
        {
            new CustNames("Alan"),
            new CustNames("Scoot"),
            new CustNames("Shark"),
            new CustNames("Alpha"),
            new CustNames("Zebra") 
        };
    return names;
}

//page_load event....
   //...check for postback....
    for (int i = 0; i &lt; 5; i++)
    {
        string name = LoadCustNames()[i].Name.ToString(); 
        ListItem(name);
    }

List&lt;char&gt; HeaderOf = new List&lt;char&gt;();
protected void ListItem(string cust)
{
    // need a way to compare with myArray... 

    char CheckMe = cust.Substring(0, 1).ToUpper()[0];
    if (!HeaderOf.Contains(CheckMe))
    {
        HeaderOf.Add(CheckMe);
    }
}
</code></pre>
