Re: override method without extending visibility
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Wed, 08 Nov 2006 07:08:17 GMT
Hi Ben,
I'm not sure if I understood you correctly, do you mean that having:
virtual protected internal void M() {}
in assembly A, and in assembly B:
protected override internal void M() {}
works while:
protected override void M() {}
doesn't work?
I just verified that on VS2005 and VS2005+SP1 Beta, both indicates only:
protected override void M() {}
works, which is the behavior as documented in compiler error CS0507.
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: override method without extending visibility
- From: Ben Voigt
- Re: override method without extending visibility
- References:
- override method without extending visibility
- From: Ben Voigt
- Re: override method without extending visibility
- From: Ben Voigt
- Re: override method without extending visibility
- From: Ben Voigt
- Re: override method without extending visibility
- From: Walter Wang [MSFT]
- Re: override method without extending visibility
- From: Ben Voigt
- override method without extending visibility
- Prev by Date: Re: PromptDataSource method
- Next by Date: Re: Socket server error.
- Previous by thread: Re: override method without extending visibility
- Next by thread: Re: override method without extending visibility
- Index(es):