Reflecting C# attributes

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

Is it possible to reflect information about c# standard
attributes? i'm well aware that
FieldInfo.GetCustomAttributes() is available - but what
about system attribs such as MarshalAs? I would like to
pull out info from attached MarshalAs attributes (such as
the value of SizeConst) rather than add my own custom
attrib in addition to MarshalAs.
 
but what about system attribs such as MarshalAs?

In v1.x, no. In v2.0, yes.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top