ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
   
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is Ienumerable
 Question Submitted By :: Thiru_moon
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Ienumerable
Answer
# 1
The IEnumerable interface appears throughout C# programs. It specifies that the underlying type implements the GetEnumerator method. It enables the foreach-loop to be used.
Program that uses IEnumerable<T> [C#]

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
static void Main()
{
IEnumerable<int> result = from value in Enumerable.Range(0, 2)
select value;

// Loop.
foreach (int value in result)
{
Console.WriteLine(value);
}

// We can use extension methods on IEnumerable<int>
double average = result.Average();

// Extension methods can convert IEnumerable<int>
List<int> list = result.ToList();
int[] array = result.ToArray();
}
}

Output

0
1
 
Is This Answer Correct ?    0 Yes 0 No
Wasim Akhtar
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
how do create a repeater  3
Please tell me the .net 2.5 frame work with example  2
does .NET support multiple inheritance ? Ness-Technologies13
Hi i need fast track course maximum to complete within a month....courses are Asp.net,c3,vb.net n sql server........at hyderbad location ..best institute n cost Chevron1
Explain in-proc,out-proc and sql server. Ness-Technologies4
There are so many languages are already existing for developing application.Then what is the need of .net.  1
What is the difference between SAX Parser and DOM Parser? TCS2
what is just in time compilation? Six-Sigma1
What is a Windows Service and how does its lifecycle differ from a "standard" EXE?  2
What is static Constructor? iGate4
What is the difference between a web custom control,web user control and a web part. 247Customer1
how to minimize,maximize and restore my form programmatically? Six-Sigma1
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com