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:
  • Describe how to create a form or control with a nonrectangular shape.


  • The common language specification


  • You are adding a new member to a class that is already in use. You want to provide backward compatibility with serialized data that was created before the member was added. Which attribute would you add to the new member so that it would be serialized in the future, but de-serialization would not throw an exception if the member class was not present in the serialized data?


  • You are developing an application to perform mathematical calculations. You develop a class named CalculationValues. You write a procedure named PerformCalculation that operates on an instance of the class. You need to ensure that the user interface of the application continues to respond while calculations are being performed. You need to write a code segment that calls the PerformCalculation procedure to achieve this goal. Which code segment should you use?


  • How to specify the Web Service compile with the WS-I basic profile?


  • 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