Consulting the .NET SDK

nordloewelabs

Senior member
Mar 18, 2005
542
0
0
i was instantiating a Generic List object today and learnt -- from the intellisense -- that the class' constructor has an overload that takes a Generic IEnumerable as argument. that is nice infor, but it could be more useful if i knew all classes that implement the aformentioned interface.

after some googling, i found out that Array class does implement the Generic IEnumerable interface. however, i'm still wondering if there's a way i could have found that out through the SDK or intellisense....
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Well, the MSDN docs usually list all the standard derived classes for a given interface, but other than that you'd have to be reflecting the assembly the derived class is implemented in. As far as I know there is no comprehensive way to gather that info.
 

nordloewelabs

Senior member
Mar 18, 2005
542
0
0
Well, the MSDN docs usually list all the standard derived classes for a given interface

do they? where is it listed? i can see all the interfaces implemented by a given class, but not the other way round?

somewhere else someone recommened reflection as well... i dont even know what it is, so i'll assume Microsoft expects everyone to memorize all implementers for all interfaces....
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Originally posted by: nordloewelabs
Well, the MSDN docs usually list all the standard derived classes for a given interface

do they? where is it listed? i can see all the interfaces implemented by a given class, but not the other way round?

somewhere else someone recommened reflection as well... i dont even know what it is, so i'll assume Microsoft expects everyone to memorize all implementers for all interfaces....

Usually it's at the very bottom of the page for a given base class.
 

nordloewelabs

Senior member
Mar 18, 2005
542
0
0
not sure if i understood you right, but i just checked the page for the IEnumerable class and there's no list of implementers on the bottom of the page. maybe this applies to some interfaces but not all.
 

imported_Dhaval00

Senior member
Jul 23, 2004
573
0
0
I don't think you can get a list of implementers. We have hundreds of libraries throughout our company that have implemented IList<>. How is Microsoft supposed to track that info? Even for their own internal libraries, how is the .NET team going to know what the SQL Server team with the base class library?

I am not trying to discount your thought... I am just stating the obvious - I don't think there is a "master" list of implementers of interfaces for .NET (or for Java).
 

nordloewelabs

Senior member
Mar 18, 2005
542
0
0
Originally posted by: clamum
Are you looking for something like this?

yes. something kind like that! nice find, mate! i wanted that kind of info on the "Generic IEnumerable" of .NET 2.0, though. maybe the number of inheritances grew to a point that made unfeasible for MS to keep making such table....
 

PhatoseAlpha

Platinum Member
Apr 10, 2005
2,131
21
81
Dim types As New List(Of Type)

Dim xDLL As System.Reflection.Assembly
xDLL = Reflection.Assembly.Load("mscorlib")

Dim Thing As IEnumerable
Dim IE As Type = GetType(IEnumerable)



For Each t As Type In xDLL.GetExportedTypes
For Each subType As Type In t.GetInterfaces
If subType Is IE Then
types.Add(t)
Exit For
End If
Next
Next
For Each t As Type In types
MsgBox(t.Name)
Next
 

JasonCoder

Golden Member
Feb 23, 2005
1,893
1
81
As far as framework classes, IEnumerable<T> is implemented by all generic collection classes. I think IQueryable (LINQ) even inherits from it.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |