473,382 Members | 1,726 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,382 software developers and data experts.

Has anyone here written a custom object browser?

If so, how did you distinguish between classes and (VB) modules?
Nov 20 '05 #1
3 927
Hi, Jeff

you might need to look up CLR standards - this information is part of
manifest. Also, Reflection classes and methods can help you find what is
what.

In short module is container for classes. There is special table in manifest
which describes referenced modules. Separate tables describe classes.

For example Assembly.GetModules get list of modules referenced by assembly.
Assembly.GetTypes gets list of defined types including classes.

See Reflection overview and I would suggest to start from there

HTH
Alex
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:OZ*************@TK2MSFTNGP09.phx.gbl...
If so, how did you distinguish between classes and (VB) modules?

Nov 20 '05 #2
And sorry, of course there are such:
you can look up Anakrino or Reflector of Lutz Roeder in google. Excellent
examples

HTH
Alex

"AlexS" <sa***********@SPAMsympaticoPLEASE.ca> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Hi, Jeff

you might need to look up CLR standards - this information is part of
manifest. Also, Reflection classes and methods can help you find what is
what.

In short module is container for classes. There is special table in manifest which describes referenced modules. Separate tables describe classes.

For example Assembly.GetModules get list of modules referenced by assembly. Assembly.GetTypes gets list of defined types including classes.

See Reflection overview and I would suggest to start from there

HTH
Alex
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:OZ*************@TK2MSFTNGP09.phx.gbl...
If so, how did you distinguish between classes and (VB) modules?


Nov 20 '05 #3

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:OZ*************@TK2MSFTNGP09.phx.gbl...
If so, how did you distinguish between classes and (VB) modules?


VBC.EXE translates modules into classes.

So basically,

module test
public sub foo()
end sub
end module

becomes
<Microsoft.VisualBasic.CompilerServices.StandardMo duleAttribute()> _
class test
public shared sub foo()
end sub
end class
So the answer is: Look for a
Microsoft.VisualBasic.CompilerServices.StandardMod uleAttribute().

David
Nov 20 '05 #4

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

Similar topics

0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
5
by: Jason Butera | last post by:
I know that I can read/write custom properties of an object by using the following: Setting: document.all.customProp = "this"; Getting: document.all.customProp; Is there a way I can run...
1
by: otto | last post by:
Hi, all: My question is as follows. I have one ASP.NET application that comunicates with a remote object hosted under IIS throught .NET Remoting. I have to use custom sink in order to add extra...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
0
by: Jonathan Folland | last post by:
I posted late last month an issue related to changing the IIS 404 handler for my web site to a custom 404 page hanlder. The custom 404 evaluates the agent to determine if it is asearch engine or a...
3
by: Steve Franks | last post by:
Is there a way I can extend the HttpContext or one of its subclasses to include a property that exposes a custom class of mine to all ASP.NET pages? More specifically, I'd like to use a...
3
by: wolfgang.lipp | last post by:
some time after posting my `Linkdict recipe`__ to aspn__ -- basically, a dictionary with run-time delegational lookup, but this is not important here -- i thought gee that would be fun to make...
19
by: Alan Silver | last post by:
Hello, Having discovered what I believe to be two CSS bugs in IE7, I have submitted bug reports to MS. AFAIK, these don't get acted on until they receive votes form others to say they are worth...
18
by: DFS | last post by:
I posted this question yesterday, and nothing but silence. I looked through cdma in Google, and it seems whenever someone posts questions about scatter charts, they get ignored. So, hopefully,...
9
by: Nick | last post by:
Hi there, I would like to perform something like the following from my vb.net web service, being invoked via HTTP Post Call HttpContext.Current.Response.Redirect("myprotocol://myurl") ...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.