KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What would be the way to call some method by name, like "Method1", if I've got an Object and it's Type ? I want to do something like this: Object o; Type t; // At this point I know, that 'o' actually has // 't' as it's type. // And I know that 't' definitely has a public method 'Method1'. // So, I want to do something like: Reflection.CallMethodByName(o, "Method1"); Is this somehow possible? I do realize that this would be slow, it's inconvenient, but unfortunately I've got no other ways to implement this in my case.
Tags (comma-separated)
Save Edits
Cancel