t_riyaz

t_riyaz

  • NA
  • 4
  • 5.5k

codeDom

Apr 5 2005 11:28 PM
Hi all, I am try to create a class in runtime using codeDom. My doubt is how can I set two attribute together to my class member. I need , public override void myMethod() { ... ... } I tried like, CodeMemberMethod mem1 = new CodeMemberMethod(); mem1.Attributes = MemberAttributes.Public; mem1.Attributes = MemberAttributes.Override; mem1.Name = "myMethod"; I am getting the attribute 'override' but not 'public'. How can I set two attribute for a single method. Riaz

Answers (1)