views:

40

answers:

2

Hi everyone!i have a question that can we exctract the structure's name from .dll using System.Reflection?Please suggest me some links.

struct MyStruct // <-- this name i wanna to find from .dll using Reflection
{
    private int length;
    private int breadth;
    public int Area(int length,int breadth)
    {
        return length*breadth;
    }
}
+2  A: 

Check the links

Assembly.GetTypes Method

System.Reflection Namespace

Reflection

Azhar
+2  A: 

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.

Mark Cidade