C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...





Posted Date: 06 Nov 2009      Posted By: tamil selvi      Member Level: Gold       Category: .NET Framework

custom-collection



You are developing a custom-collection class.
You need to create a method in your class. You need to ensure that the method you create in
your class returns a type that is compatible with the Foreach statement. Which criterion should
the method meet?


Select Answer:

The method must return a type of either IEnumerator or IEnumerable.
The method must return a type of IComparable.
The method must explicitly contain a collection.
The method must be the only iterator in the class




      
Your Test Score: 0 / 0



Next Question: How many levels of compilation happens in .NET Framework?
Previous Question: Byte array
Related Questions:
  • Assembly Version Informations are Stored in ...?


  • What will be the ouput of the following code using System; class A {public virtual void show() {Console.WriteLine("From A");} } class B:A {public override void show() {Console.WriteLine("From B");} } class C:B {public override void show() {Console.WriteLine("From C");} } class D {public static void Main() {A a=new C();a.show();} }


  • which method returns a string array of directory paths?


  • Which namespace of the .NET Framework do you use to create metadata dynamically at runtime?


  • **** Correction : .NET Garbedge Collector (GC) mark object as ? Make State , ........... not sate every place.


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 
    Java 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use