Microsoft
Software
Hardware
Network
Question : C# Brain Bench Question
I'm new to this 'IEnumerable interface'. Can someone say a word or two about it as in contrast to the world before .NET ?
Thanks!
Which one of the following is a limitation resulting from a class that has an indexer property but does NOT either implement the IEnumerable interface or any of its members?
Choice 1.The indexer must return an "object" type.
Choice 2.Neither the "for" nor "foreach" statements is supported.
Choice 3.The "foreach" is not supported.
Choice 4.The indexer can have only one parameter.
Choice 5.The class cannot implement a GetEnumerator method.
Answer : C# Brain Bench Question
Hello,
IEnumerable interface is the base for using foreach statement.
Although you can use a for loop; a foreach statement is easier to use.
Random Solutions
Changing calendar from 5 days a week to 7
The World Wide Web Publishing Service (WWW Service) did not register the URL prefix <a rel="nofollow" href="https://*:443/" target="_blank">https://*:443/</a> for site 1.
How do I find MDI Active Child from toolbar on MDI Parent in VB.NET Winforms Application?
MS SQL FTS Index Population Error
One question about Log4Net & Common.Logging
Running SQL server DTS with condition check
.Net 2.0 and Mono compatibility?
Populating SharePoint Contact List from Active Directory
Printing question
Upgrade to Vista, video card not detected