Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / December 2005

Tip: Looking for answers? Try searching our database.

Classes that implement IEnumerable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Shemitz - 19 Dec 2005 07:05 GMT
The 1.1 documentation for a FCL interface had a list of classes that
implement it; the 2.0 documentation doesn't seem to.

Are these lists still present, just cunningly hidden? Or is there any
way to generate such a list, perhaps with a regex expression on the
search page?

(I can grep the XML Doc files, but that doesn't seem to work very
well. For example, that shows 28 classes that implement IEnumerable in
50215 (beta 2) while counting 1.1 the doc table in 1.1 shows 126 ....)

Signature

    <http://www.midnightbeach.com>

Mattias Sjögren - 19 Dec 2005 17:28 GMT
>Are these lists still present, just cunningly hidden? Or is there any
>way to generate such a list, perhaps with a regex expression on the
>search page?

It shouldn't be too hard to do with Reflection.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jon Shemitz - 19 Dec 2005 20:40 GMT
> >Are these lists still present, just cunningly hidden? Or is there any
> >way to generate such a list, perhaps with a regex expression on the
> >search page?
>
> It shouldn't be too hard to do with Reflection.

Thanks. That's true, and I should have thought of it. Guess it was
late.

Signature

    <http://www.midnightbeach.com>

Jon Shemitz - 19 Dec 2005 21:17 GMT
> > >Are these lists still present, just cunningly hidden? Or is there any
> > >way to generate such a list, perhaps with a regex expression on the
[quoted text clipped - 4 lines]
> Thanks. That's true, and I should have thought of it. Guess it was
> late.

499 in the beta 2 System.* namespaces.

//

using System;
using System.Collections;
using System.Reflection;

namespace Eumerables
{
 class Program
 {
   static void Main(string[] args)
   {
     Type Enumerable = typeof(IEnumerable);
     int Enumerables = 0;
     foreach (Assembly A in AppDomain.CurrentDomain.GetAssemblies())
       foreach (Type T in A.GetExportedTypes())
         if (!T.IsInterface && Enumerable.IsAssignableFrom(T))
         {
           Console.WriteLine(T.FullName);
           Enumerables++;
         }
     Console.WriteLine("\n{0} types implement IEnumerable", Enumerables);
   }
 }
}

//

Signature

    <http://www.midnightbeach.com>


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.