More code dom

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

Still fairly new to this and working my way through fairly well. I now have
a new need.

I have an existing code dom, in it are classes with members. I need to
change the type of each member and what the class inherits from. any
suggestions on how to accomplish this?

Thanks
Wayne
 
Hi Wayne,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to change the type of each
member and based class type. If there is any misunderstanding, please feel
free to let me know.

To change the member type, I think you can change
CodeTypeDeclaration.Members[0].Type property. Just create a new
CodeMemberField object and assign it to that member.

To modify the base type, we can change CodeTypeDeclaration.BaseTypes to
achieve this.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemcodedomcodetypedeclarationmemberstopic.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top