Users Pricing

forum

Home Forums ASP.NET MVC Find class by class attribute value using Reflection – MindStick

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

Mark Devid 2284 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?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md