26 lines
348 B
C#
26 lines
348 B
C#
|
using System;
|
||
|
|
||
|
namespace Test
|
||
|
{
|
||
|
public abstract class CustomParentAttribute : Attribute
|
||
|
{
|
||
|
public abstract void DoSomething ();
|
||
|
}
|
||
|
|
||
|
[CustomChild]
|
||
|
public class MyClass
|
||
|
{
|
||
|
private sealed class CustomChildAttribute : CustomParentAttribute
|
||
|
{
|
||
|
public override void DoSomething ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|