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

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 1390
You have to write code that does the search using reflection. Here's an
example:

Imports System.Reflection
Imports System.IO

Module Module1

Sub Main()
Dim searchDir As String =
"C:\WINDOWS\Microsoft.Net\Framework\v1.1.4322"
Dim searchFor As String = "Open"

Dim assemblyName As String
For Each assemblyName In Directory.GetFiles(searchDir, "*.dll")
Try
Dim currentAssembly As [Assembly] =
[Assembly].LoadFile(assemblyName)
For Each currentType As Type In currentAssembly.GetTypes()
If currentType.Name = searchFor Then
Console.WriteLine(Path.GetFileName(assemblyName) &
":" & _
currentType.FullName)
End If
For Each method As MemberInfo In currentType.GetMembers
If method.Name = searchFor Then
Console.WriteLine(Path.GetFileName(assemblyName)
& ":" & _
currentType.FullName & ":" & method.Name)
End If
Next
Next
Catch ex As Exception
End Try
Next

End Sub

End Module

"SevenThugsSoftware" 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
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
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...
8
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...
1
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...
1
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
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...
16
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...
0
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. ...
0
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.