[Mono-dev] Bug 10784

2016-01-04 Thread Jamie Venning
Good Morning. Bug 10784 ( https://bugzilla.xamarin.com/show_bug.cgi?format=multiple&id=10784) is a major blocker for me, and a big obstacle for larger applications moving from .NET to Mono. Because I need this fixed, I am prepared to fix it myself. I'm wondering if anyone knowledgeable in this ar

Re: [Mono-dev] Is property?

2016-01-04 Thread Greg Young
Maybe explaining the use case a bit more is worthwhile. I am running in the context of the profiling API. In many bits of code it is prohibitively expensive (and not at all valuable) to look at getters/setters. Even doing a hash lookup in them adds significant overhead (think code that tends to use

Re: [Mono-dev] Is property?

2016-01-04 Thread Greg Young
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 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

Re: [Mono-dev] Is property?

2016-01-04 Thread Jb Evain
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 po

[Mono-dev] Is property?

2016-01-04 Thread Greg Young
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@lists.ximian