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 / CLR / January 2004

Tip: Looking for answers? Try searching our database.

Interfaces - List of which objects use them

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Klaus L?ffelmann - 10 Nov 2003 19:59 GMT
Hi,

the documentation of Visual Studio usually lists all the classes that
implements a certain interface.
Does anybody now, if there is a list of classes which actually use classes
having special interfaces implemented?
I'd like to know more - for example - about the IConvertible-Interface. The
docu shows the 3 classes DBNull, Enum and String, which are implementing
this interface. But how or in what circumstances is that interface used?

Thanks

Klaus
AlexS - 10 Nov 2003 23:27 GMT
You can try Anakrino or ildasm on classes and corresponding methods /
properties and see the code.

HTH
Alex

> Hi,
>
[quoted text clipped - 9 lines]
>
> Klaus
Klaus L?ffelmann - 10 Nov 2003 22:37 GMT
Hi Alex,

That would be like the search for the needle in the hay stack, wouldn't it.
;-)

I tought there might be something out there like a white paper already
listing what what is for.
Many thanks, anyway.

Klaus

> You can try Anakrino or ildasm on classes and corresponding methods /
> properties and see the code.
[quoted text clipped - 16 lines]
> >
> > Klaus
AlexS - 11 Nov 2003 04:52 GMT
I don't think you would be able to find such whitepaper - it's like
description of implementation, right? If MS did not provide it, who can - I
mean officially? That's why I suggested this way.

Of course it won't work if you plan to document all possible references.
There is another way though - if you know how to parse metadata you can get
some of this information from there. However this won't be very easy task.

Btw, Char, SqlChar and several others also implement IConvertible.
Rgds
Alex

> Hi Alex,
>
[quoted text clipped - 28 lines]
> > >
> > > Klaus
Kit George (MSFT) - 23 Jan 2004 17:47 GMT
Klaus (and all), we haven't porvided such a document, and have no current
plans to do so. However, I like the suggestion, and we will be tracking
this for consideration in the future, thanks for the request.
Sebastien Lambla - 11 Nov 2003 11:57 GMT
All blittable types implenent IConvertible, which you use for converting
using the ToInt16() and friends methods, It is rather tedious to implement,
but it's used  with things such as the Convert class, which itself is used
for example when setting values to SqlParameter or OdbcParameter.

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

> Hi,
>
[quoted text clipped - 9 lines]
>
> Klaus

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.