473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Retrieving the superTypes of a given Type object in an assembly

Hi all,
within the same assembly, we are capable to retrieve the superTypes of a
given Type object by using the IsSubclassOf method of the Type class.
What about classes that belongs to external assemblies.
Should i get the referenced assemblies (by there names), load them and then
browse there types to find the superTypes of my given type ?
Any help would be appreciated.
Thanks.
Nov 15 '05 #1
2 1767
Hi Belangour,

You may like to try the Type.BaseType property to get the
type information of the base class from which your present type inherits.

Regards,
Aravind C
"Abdessamad Belangour" <be*******@irin.univ-nantes.fr> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Hi all,
within the same assembly, we are capable to retrieve the superTypes of a
given Type object by using the IsSubclassOf method of the Type class.
What about classes that belongs to external assemblies.
Should i get the referenced assemblies (by there names), load them and then browse there types to find the superTypes of my given type ?
Any help would be appreciated.
Thanks.

Nov 15 '05 #2
I think that is the only option left for you,to load the
whole assembly and then get all the types and do the rest
of probing ... because if the class belong to external
assemlies then you get 'undefined' for Type.BaseType ...

Sarosh
-----Original Message-----
Hi all,
within the same assembly, we are capable to retrieve the superTypes of agiven Type object by using the IsSubclassOf method of the Type class.What about classes that belongs to external assemblies.
Should i get the referenced assemblies (by there names), load them and thenbrowse there types to find the superTypes of my given type ?Any help would be appreciated.
Thanks.
.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pablo | last post by:
Hi, I'm creating an AppDomain and creating an instance of a class. This works fine unless I use caching, which I need to use. The exception that I get is of type "System.IO.FileLoadException"...
0
by: belangour abdessamad | last post by:
Hi all, within the same assembly, we are capable to retrieve the superTypes of a given Type object by using the IsSubclassOf method of the Type class. What about classes that belongs to external...
7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
7
by: Robert W. | last post by:
I think I'm going insane, but thought I'd check with you all first before I get myself commited! Here's a method I've built to retrieve an image: public static Image GetImage(string...
4
by: Huy Hoang | last post by:
I can retrieve the path of a Windows form using the Application object. However, if I write a class which will be compiled into a DLL, would it be possible to retrieve the DLL path (without passing...
1
by: jimmyfo | last post by:
Hi, I recently wrote an ASP.Net web application in VS2005 and published (using VS2005 Publish feature) it to a relatively clean machine with ASP.Net 2.0 and MDAC 2.8 installed on it. However, when...
7
by: rfinch | last post by:
Very new to this but using the MS working with dynamics CRM 3.0 book to run web application to retrieve lead records from CRM 3.0. Have followed the book instructions on page 380-382. But am...
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
7
by: uncle | last post by:
config file that contains lines like... assemblyname|classname|methodname I want to invoke that static method. I found the following examples which make sense... Type theClass =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.