forum

Home / DeveloperSection / Forums / ASP.NET MVC Find class by class attribute value using Reflection

ASP.NET MVC Find class by class attribute value using Reflection

Mark Devid 1876 14-Aug-2014

I have a class with a custom attribute that has a string parameter.

[ANAttribute("Ampe21")]
public class ClassB : ClassA
{
}

I have different action names defined for different classes.

What I want is to obtain the namespace of ClassB or obtain the type of ClassB by searching the entire application after Ampe21.

How can I do that?


c# c# 
Updated on 14-Aug-2014

Can you answer this question?


Answer

1 Answers

Liked By