473,811 Members | 2,859 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tool to search for namespace in directory of .dll files


Does anyone know if there is a tool which can search a directory of
..dll files, for a particular namespace or object or method?
-Nesim

Nov 21 '05 #1
1 1409
You have to write code that does the search using reflection. Here's an
example:

Imports System.Reflecti on
Imports System.IO

Module Module1

Sub Main()
Dim searchDir As String =
"C:\WINDOWS\Mic rosoft.Net\Fram ework\v1.1.4322 "
Dim searchFor As String = "Open"

Dim assemblyName As String
For Each assemblyName In Directory.GetFi les(searchDir, "*.dll")
Try
Dim currentAssembly As [Assembly] =
[Assembly].LoadFile(assem blyName)
For Each currentType As Type In currentAssembly .GetTypes()
If currentType.Nam e = searchFor Then
Console.WriteLi ne(Path.GetFile Name(assemblyNa me) &
":" & _
currentType.Ful lName)
End If
For Each method As MemberInfo In currentType.Get Members
If method.Name = searchFor Then
Console.WriteLi ne(Path.GetFile Name(assemblyNa me)
& ":" & _
currentType.Ful lName & ":" & method.Name)
End If
Next
Next
Catch ex As Exception
End Try
Next

End Sub

End Module

"SevenThugsSoft ware" wrote:

Does anyone know if there is a tool which can search a directory of
..dll files, for a particular namespace or object or method?
-Nesim

Nov 21 '05 #2

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

Similar topics

4
4042
by: Tandem person | last post by:
I am in search of a free tool which can replace multiple strings on the particular directory . Please let me know if any such , written in perl. Thanks Athresh
14
6907
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the HTML doc. The HTML version doesn't have anything fancy, just internal links. So the tool must be able to delete internal links and anchors from the HTML version, but leave external links in simplified form. That is, the HTML version would say <a...
8
1749
by: Jack | last post by:
Hi, I am maintaining quite a few asp applications. In one of those, I have to change the response.redirect to a particular page. This application has more than fifty asp pages. Instead of going through manually through each page to find the response.redirect phrase, is there any tool that will find and report all occurences of response.redirect (in the present scenario) among all those fifty asp pages? If there is one I would like to know....
1
7571
by: Prem | last post by:
Hi, I need to search a particular directory for all the files that do not have any extension and have a specific naming convension. The first 3 characters of the file name are alpha and the rest are numeric. For example, valid files are 'abc1234', 'xyz9876' etc. Is there a search pattern I can use with the Directory.getFiles( ) method. Thanks in Advance Prem
1
1615
by: Jianwei Sun | last post by:
I remember there is a tool which automatically put some simple comments on the properties and methods. I cannot find it anywhere, can somebody help me on this.
4
3088
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which leads to a secondary problem involving php's __autoload feature. Since you cannot specify a namespace when calling a class that may not have been included, you are forced to store all of your classes in the same folder in your file system. This...
16
2865
by: Computer geek | last post by:
Hello, I am new to VB.NET and programming in general. I have taught myself a lot of the basics with vb.net but am still quite the novice. I am working on a little application now and I need some help with one part of the code. When a button is clicked I need to have it go out to a network drive location and count how many files are present with a certain file extension. Then store that number in a declared variable. Is this possible? Can...
0
1157
by: Peter Duniho | last post by:
On Fri, 27 Jun 2008 12:27:23 -0700, <kumar00245@gmail.comwrote: I don't believe that there is any .NET Forms namespace control that automatically will display filenames from a directory. However, you can use the Directory class in the System.IO namespace to retrieve that information and populate a control yourself. Pete
0
10792
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10393
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.