[Mono-dev] Is property?

Greg Young gregoryyoung1 at gmail.com
Mon Jan 4 17:52:36 UTC 2016


Is there an easy way to test METHOD_ATTRIBUTE_SPECIAL_NAME for a MonoMethod *?

On Mon, Jan 4, 2016 at 5:50 PM, Jb Evain <jbevain at gmail.com> wrote:
> 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.
>
> Jb
>
>
>
> 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



-- 
Studying for the Turing test


More information about the Mono-devel-list mailing list