Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error CS0180 

Error Message

'member' cannot be both extern and abstract

The abstract and extern keywords are mutually exclusive. The extern keyword means that the member is defined outside the file, and abstract means that the implementation is provided in a derived class. For more information, see Methods (C# Programming Guide).

The following sample generates CS0180:

// CS0180.cs
namespace MyNamespace
   public class MyClass
      public extern abstract int Foo(int a);   // CS0180

      public static void Main()
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.