a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
388 B
C#
28 lines
388 B
C#
using System;
|
|
|
|
public class BaseClass
|
|
{
|
|
public delegate void SomeDelegate ();
|
|
public BaseClass (SomeDelegate d)
|
|
{
|
|
d ();
|
|
}
|
|
}
|
|
|
|
public class TestClass : BaseClass
|
|
{
|
|
public readonly int Result;
|
|
public TestClass (int result)
|
|
: base (delegate ()
|
|
{
|
|
Console.WriteLine (result);
|
|
})
|
|
{
|
|
}
|
|
|
|
public static int Main (string[] args)
|
|
{
|
|
TestClass c = new TestClass (1);
|
|
return 0;
|
|
}
|
|
} |