[Mono-dev] Is property?

Jb Evain jbevain at gmail.com
Mon Jan 4 17:50:20 UTC 2016

Hi Greg,

I'm afraid there's no exact flag for that. The best approximation
would be to test that it is flagged METHOD_ATTRIBUTE_SPECIAL_NAME, and
that its name starts with "set_" or "get_".

Short of that, you'll need to iterate over the properties of the class
and check that one of its methods points to your MonoMethod.


On Mon, Jan 4, 2016 at 4:36 AM, Greg Young <gregoryyoung1 at gmail.com> wrote:
> How can you figure out if a method is a property from a MonoMethod *?
> I have poked around looking for this for an hour or so and can't find it.
> Cheers,
> Greg
> --
> Studying for the Turing test
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list