KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to create a generic method that will read an attribute on a class and return that value at runtime. How do would I do this? Note: DomainName attribute is of class DomainNameAttribute. [DomainName("MyTable")] Public class MyClass : DomainBase {} What I am trying to generate: //This should return "MyTable" String DomainNameValue = GetDomainName<MyClass>();
Tags (comma-separated)
Save Edits
Cancel