mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
35 lines
420 B
C#
35 lines
420 B
C#
// cs0239.cs: `X.MyMethod()': cannot override inherited member `Bar.MyMethod()' because it is sealed
|
|
// Line : 25
|
|
|
|
using System;
|
|
|
|
public class Foo {
|
|
|
|
public virtual void MyMethod ()
|
|
{
|
|
Console.WriteLine ("This is me !");
|
|
}
|
|
}
|
|
|
|
public class Bar : Foo {
|
|
|
|
public sealed override void MyMethod ()
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public class X : Bar {
|
|
|
|
public override void MyMethod ()
|
|
{
|
|
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
|
|
}
|
|
}
|