Error when trying to access Source Control with Team Explorer- No such Interface found

Try the following steps to resolve the issue:

1. Open a command prompt.

2. Navigate to the following folder:

  “%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\”

3. Type the following:

devenv.exe /resetuserdata

Bugs and Defects

What is the difference between the bug and defects? bug and defect are differ only theoretically, practically all are same.
Error : Any deviations from the requirements is an error
Bug : Bug is an error during the execution of program
Defect : Post production errors are called as defects
Fault : It is the condition where the system/component is unable to function as per the
Requirement.
Failure : It’s the inability of the system to function as per the requirements.

Lambda Expression- Compare list with custom collection

Following example illustrates how to compare the string list with custom collection using Lambda expression

class Program
{
public class First
{
      public string Name
     {
             get;
              set;
   }
}

static void Main(string[] args)
{
List nameList = new List {“Hai”, “Welcome”};
First first = new First
{
Name = “Hai”
};
List firstList = new List
{
first
};

bool result = (firstList.Any(field => nameList.Contains(field.Name)));
if(result)
{
Console.WriteLine(“Name Found in name list…”);
}
}
}