How can I extract struct type names from a .dll?
Can we exctract the structure's name from .dll using System.Reflection?
Please suggest some links.struct MyStruct // <-- this name i wanna to find from .dll using Reflection
{
private int length;
private 开发者_StackOverflowint breadth;
public int Area(int length,int breadth)
{
return length*breadth;
}
}
You can get a list of all types from an assembly (.dll) by calling the Assembly.GetTypes()
method. The name for each type can be accessed from the Type.Name
property.
Check the links
Assembly.GetTypes Method
System.Reflection Namespace
Reflection
精彩评论