C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 490 Page Views: 

How do you select even numbers using Where extension method on List<int>?



Posted By: Avi Date: 15 October 2010 04:53:47 AM
 Answer:

data.Where( I => I %2 == 0);


Posted By: avibtech


Date: 15 October 2010 04:53:47 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image YboEiv
Related Questions
C# : What is the use of "fixed" statement in C#?

What is the use of "fixed" statement in C#?

The "fixed" statement prevents the garbage collector from relocating a movable variable. T....
Category: C# Date: 10/28/2009 5:25:18 AM
C# : Will finally block get executed if the exception had not occurred?
C# : Which class can be used to perform data type conversion between .NET data types and XML types?
C# : Explain the different types of comments in C#?

Explain the different types of comments in C#?

Following three types of comments can be used in C#: 1) Single-line Comments: Example: //..commen....
Category: C# Date: 10/28/2009 4:53:21 AM
C# : What is the syntax to inherit from a class in C#?

What is the syntax to inherit from a class in C#?

After the name of derived class, place a colon and then the name of the base class. For example: ....
Category: C# Date: 10/15/2009 4:39:26 AM