KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My method looks like: public string DoObjectProperties<T>(T obj, string text) { } Now from within the method, I need to get the string value of the class name that i pass into the method's 'obj' parameter. So if I pass in the User object, I need the text 'user'. To get the properties I am using: typeof(T).GetProperties() How can I get the classes name?
Tags (comma-separated)
Save Edits
Cancel