[Mono-dev] Reason for introduction of CS0809 warning in mcs ?
Gert Driesen
gert.driesen at telenet.be
Sat Jan 6 13:18:48 EST 2007
> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Atsushi Eno
> Sent: zaterdag 6 januari 2007 16:51
> To: Gert Driesen
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] Reason for introduction of CS0809 warning in
> mcs ?
>
> Hi,
>
> To understand the issue precisely, does it warn something like
> "marking overriden member as obsolete is bogus" ? For example:
>
> public class Class1
> {
> public virtual void Foo () {}
> }
>
> public class Class2 : Class1
> {
> [Obsolete]
> public override void Foo () {}
> }
>
> If so, I support this warning. That member marked as obsoleted
> could be used by referencing Class1.Foo() and thus there is no
> point of warning only Class2.Foo() since depending on the usage
> this obsolete warning cannot be caught. So, it sounds like a
> bad idea to mark overriden member as obsolete.
Yeah, you're right.
Thanks for the feedback.
Gert
More information about the Mono-devel-list
mailing list