a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
562 B
C#
32 lines
562 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
|
|
class BaseClass
|
|
{
|
|
[Conditional ("AAXXAA")]
|
|
public virtual void ConditionalMethod ()
|
|
{
|
|
Environment.Exit (1);
|
|
}
|
|
}
|
|
|
|
class TestClass: BaseClass
|
|
{
|
|
public override void ConditionalMethod ()
|
|
{
|
|
base.ConditionalMethod ();
|
|
}
|
|
}
|
|
|
|
class MainClass
|
|
{
|
|
public static int Main()
|
|
{
|
|
TestClass ts = new TestClass ();
|
|
ts.ConditionalMethod ();
|
|
Console.WriteLine ("Succeeded");
|
|
return 0;
|
|
}
|
|
}
|