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