CodeDom -- create virtual method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    CodeDom -- create virtual method

    Using the CodeDom namespace, how to do you specify that a generated method
    should be virtual?

    CodeMemberMetho d method = new CodeMemberMetho d();
    method.Name = "MyMethod";
    method.Attribut es = MemberAttribute s.???????;

    Thanks in advance.

    Mark


  • Mohamoss

    #2
    RE: CodeDom -- create virtual method

    Hi Mark
    That really depends on the logic of your application or your code. Is this
    function most likely overridable . can an object use this function or it
    needs to be future developed in an overload. you can alwasy use your name
    conventions to knoe that is is a virtual function like member attributes
    ".... virtual!" hope this helps , you might also look at this good sample
    using codedom

    Hope this helps
    Developer Support Engineer
    ITWorx on behalf of Microsoft EMEA GTSC

    Comment

    Working...