1
Answer

codeDom

t_riyaz

t_riyaz

19y
1.9k
1
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)