Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone! I had encountered this problem. That is Ccn we find the struct's name's from .dll using System.Reflection?
Posted
Updated 1-Sep-10 1:13am
v2

1 solution

Yes, you can.


How?


Here you go...

C#
// Load the dll
Assembly assembly = Assembly.LoadFrom("...name...");

// Get all types from the assembly
type[] allTypes = assembly.GetTypes()


Once you do that, you can easily filter and search all the types to do whatever you need to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900