| | | StrataFrame User
       
Group: StrataFrame Users Last Login: 2 days ago @ 10:55:30 PM Posts: 128, Visits: 386 |
| | 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: Yesterday @ 9:36:54 PM Posts: 4,200, Visits: 4,251 |
| 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: 2 days ago @ 10:55:30 PM Posts: 128, Visits: 386 |
| | | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 9:36:54 PM Posts: 4,200, Visits: 4,251 |
| No problem |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 2 days ago @ 10:55:30 PM Posts: 128, Visits: 386 |
| | |
|
|