Determine if method is unsafe via reflection
Posted
by hmemcpy
on Stack Overflow
See other posts from Stack Overflow
or by hmemcpy
Published on 2010-06-15T11:03:44Z
Indexed on
2010/06/15
12:22 UTC
Read the original article
Hit count: 307
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!
© Stack Overflow or respective owner