The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Compiler Warning (level 1) CS0809

Visual Studio 2008

Obsolete member 'memberA' overrides non-obsolete member 'memberB'.

Typically, a member that is marked as obsolete should not override a member that is not marked as obsolete. This warning is generated in Visual Studio 2008 but not in Visual Studio 2005.

To correct this error

  • Remove the Obsolete attribute from the overriding member, or add it to the base class member.

// CS0809.cs
public class Base
    public virtual void Test1()
public class C : Base
    public override void Test1() // CS0809
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft