linux-packaging-mono/mcs/tests/test-partial-31.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

46 lines
738 B
C#

using System;
namespace TestPartialOverride.BaseNamespace
{
public abstract class Base
{
protected virtual void OverrideMe ()
{
Console.Out.WriteLine ("OverrideMe");
}
}
}
namespace TestPartialOverride.Outer.Nested.Namespace
{
internal partial class Inherits
{
protected override void OverrideMe ()
{
Console.Out.WriteLine ("Overridden");
}
}
}
namespace TestPartialOverride.Outer
{
namespace Nested.Namespace
{
internal partial class Inherits : TestPartialOverride.BaseNamespace.Base
{
public void DoesSomethignElse ()
{
OverrideMe ();
}
}
}
public class C
{
public static void Main ()
{
new TestPartialOverride.Outer.Nested.Namespace.Inherits ().DoesSomethignElse ();
}
}
}