Determine if method is unsafe via reflection
- by hmemcpy
I'm looking for a way to filter out methods which have the unsafe modifier via reflection. It doesn't seem to be a method attribute.
Is there a way?
EDIT: it seems that this info is not in the metadata, at least I can't see it in the IL. However reflector shows the unsafe modifier in C# view. Any ideas on how it's done?
Thanks!