| | | StrataFrame User
       
Group: StrataFrame Users Last Login: 09/27/2008 2:00:26 AM Posts: 152, Visits: 459 |
| | I have an Business Base class that is inhereted from BusinessLayer. I want to restrict some of them and not to see when dealing with my Business Base. I have overriden some methods then made private. But It does not work. Because I ve got "virtual and abstract methods can not be private."message. What is the best way ? |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 4:52:53 AM Posts: 4,586, Visits: 4,571 |
| What is the best way ? You can't change the declaration type of a property, event, or method. If you want to hide it, then your only option would be to add an attribute like <Browsable(False)> _ to prevent it from showing up in the designer. There are other attributes as well depending on what you are trying to accoimplish, but you cannot turn a public into a private, etc. That totally violates object oriented programming and you will have downstream issues. |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 09/27/2008 2:00:26 AM Posts: 152, Visits: 459 |
| | | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 4:52:53 AM Posts: 4,586, Visits: 4,571 |
| No problem |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 09/27/2008 2:00:26 AM Posts: 152, Visits: 459 |
| | |
|
|