SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

NRefactory and attributes(return: and param:) on properties getters and setters of an interface

Last post 03-21-2012 9:33 PM by DanielGrunwald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-21-2012 8:38 PM

    • Eusebiu
    • Top 25 Contributor
    • Joined on 09-17-2010
    • Bucharest, Romania
    • Posts 282

    NRefactory and attributes(return: and param:) on properties getters and setters of an interface

    Hey guys,

    I want to generate (the code for) an interface with a property and depending on the property type, I want to add the attributes [return: MarshalAs(...)] on getter and [param:MarshalAs(...)] on setter. 

    I have the source file and I parse it but I don't know how can I add these specific nodes to AST in order to regenerate the source code.

    Regards,

    Eusebiu

  • 03-21-2012 9:33 PM In reply to

    Re: NRefactory and attributes(return: and param:) on properties getters and setters of an interface

    Just generate them like normal attributes, but set attributeSection.AttributeTarget = "param";

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.