开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜