2 using System
.Collections
.Generic
;
6 protected virtual int BaseM
{
12 throw new ApplicationException ("it should not be called");
19 protected override int BaseM
{
28 public IEnumerable
<int> GetIt ()
30 yield return base.GetHashCode ();
36 protected override int BaseM
{
39 throw new ApplicationException ("it should not be called");
43 IEnumerable
<int> GetIt ()
45 yield return base.BaseM
++;
48 public static int Main ()
50 foreach (var v
in new X ().GetIt ())
51 Console
.WriteLine (v
);
53 foreach (var v
in new S ().GetIt ())
54 Console
.WriteLine (v
);