deedee. 

As JB said there is no way to work this out via metadata. you have to make 
assumptions.

The easiest would be to take "<OldValue>k__BackingField" and extract the 
"OldValue" part and find a property with that name

On Tuesday, 11 September 2012 05:42:10 UTC+10, deedee wrote:
>
> Simon: I am doing some code analysis, and I want to exclude the auto - 
> properties from that.
>
> Jb Evain: I still have to try that out, other things have kept me busy -- 
> but if that works, will update it here. 
>
> Thanks!
>
> On Saturday, August 25, 2012 5:49:03 PM UTC-6, Simon wrote:
>>
>> what are you trying to achieve?
>>
>> On Thursday, 23 August 2012 03:09:43 UTC+10, deedee wrote:
>>>
>>>
>>> Hi,
>>>
>>> Is there a way to find from a property definition, if the property is 
>>> Auto property? On looking at the dll, I can see the *private string 
>>> <OldValue>k__BackingField; *generated for an auto property named 
>>> 'OldValue' returning a string - under the *Derived Types, *but how do I 
>>> fetch the corresponding information directly from Mono?
>>>
>>> Thanks in advance :) 
>>>
>>

-- 
--
mono-cecil

Reply via email to