Navigate through the CustomAttribute.Properties collection to find the
named argument named SomeProp. Its argument will be of type string and
its value will be what you're after.

On Thursday, November 11, 2010, Jeff Nevins <[email protected]> wrote:
> I have a CustomAttribute. I see there's a Blob property on it, but I
> want to get out one of the properties set on the attribute in it's
> specific instance (specifically a string), no just the raw binary.
>
> That is, I have
>
> [MyTestAttribute(SomeProp = "Val")]
> public class......
>
>
> And I want to get out "Val".
>
> Can you suggest a way of doing this please?
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to