void Main()
{
Coder coder = new Coder("Jon");
List
{
new Coder("Anish"),
new Coder("marokey"),
};
var result = coderCollection.Where(r => r.Name == "Pat").DefaultIfEmpty(coder);
}
// Define other methods and classes here
class Coder
{
public string Name;
public Coder(string Name)
{
this.Name = Name;
}
}
No comments:
Post a Comment