Replies: 1 comment
-
Extension methods are a C# concept not a runtime concept, these are just static methods on static classes marked with an [Extension] attribute where the first argument is the "this" pointer. They can be defined on any class in any assembly so there's no simple way to enumerate them at runtime. e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We can find any method of a class using IMetaDataImport interface's methods EnumMethods(..) or EnumMethodsWithName(...).
But those methods don't enumerate extension methods of a class. Is there any way to find those methods of a class or instance of a class ?
Beta Was this translation helpful? Give feedback.
All reactions