a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
33 lines
350 B
C#
33 lines
350 B
C#
using System;
|
|
|
|
public class A : Attribute
|
|
{
|
|
public virtual string Prop {
|
|
set {}
|
|
get { return null; }
|
|
}
|
|
|
|
public int Field ()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
public class B : A
|
|
{
|
|
public override string Prop {
|
|
set {}
|
|
get { return "b"; }
|
|
}
|
|
|
|
public new int Field;
|
|
}
|
|
|
|
[B (Prop = "a", Field = 3)]
|
|
public class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
}
|