.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Interview Question >> LINQ >> Post New Question Subscribe to Interview Questions

How Where() method using Lambda Expression implemented for List in C#?

Posted By :Jean Paul     Posted Date :May 01, 2011    Points :40   Category :LINQ 
Using Extension Methods

You can also find related Interview Question to How Where() method using Lambda Expression implemented for List in C#?  below: 

Is the method Where() using lambda expression returns values immediately.

Nope. It is deferred execution. It will return an object which contains the information to execute the query. The actual filtering happens when the enumeration of elements starts.

The enumeration could be started by using a foreach loop. (More...)

What is the use of UpdateOverWriteVersion method in Sharepoint List?

This method updates the list item without creating another version. If we use Update Method it will create the versions.


What is Lambda Expression?

msdn: A Lambda expression is an anonymous function that can contain expressions and statements.

All lambda expressions use the => (goes to) operator

The left side of => holds the parameters if any
The right side holds the expressions or statements

There are expression lambdas and statement lambdas (More...)

Is the Where() method residing in List class or IList class?

It is an extension method in a static class Enumerable.cs (More...)

What is a Lambda expression?

A Lambda expression is nothing but an Anonymous Function, can contain expressions and statements. Lambda expressions can be used mostly to create delegates or expression tree types. Lambda expression uses lambda operator => and read as 'goes to' operator.

Example: myExp = myExp/10;

The => operator has the same precedence as assignment (=) and is right-associative.

Lambdas are used in method-based LINQ queries as arguments to standard query operator methods such as Where. (More...)

What is Method overloading?

Method overloading occurs when a class contains two methods with the same name, but different signatures. (More...)

What is Method Overriding? How to override a function in C#?

Use the override modifier to modify a method, a property, an indexer, or an event. An override method provides a new implementation of a member inherited from a base class. The method overridden by an override declaration is known as the overridden base method. The overridden base method must have the same signature as the override method.
You cannot override a non-virtual or static method. The overridden base method must be virtual, abstract, or override. (More...)

Can we call a base class method without creating instance?

Its possible If its a static method.

Its possible by inheriting from that class also.

Its possible from derived classes using base keyword. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend