Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
U

User 3466810

@User 3466810
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CodeDom and partial method
    U User 3466810

    Hi, Is there a way to produce a partial method with CodeDom? Ex. partial void MyMethod() { ... } It looks like the MemberAttributes doesn't have "Partial" in it :( CodeMemberMethod codeMemberMethod = new CodeMemberMethod(); codeMemberMethod.Attributes = MemberAttributes.Public...but no MemberAttributes.Partial? My problem is that I'm generating some code to implement partial method. I have this class (created "by hand"):

    public partial class MyClass
    {
    partial void MyMethod();
    partial void MyMethodB();
    }

    Then with CodeDom, I want to generate the implementation of those partial method. Something like:

    public partial class MyClass
    {
    partial void MyMethod()
    {
    // Do Something
    }

    partial void MyMethodB()
    {
        // Do Something
    }
    

    }

    That's why I need the "Partial" in System.CodeDom.MemberAttributes. May be I'm all wrong...it's something else the MemberAttributes that I should use to do this? Thank

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups