Visual Studio扩展,显示继承的自定义属性

时间:2014-01-18 21:39:23

标签: c# visual-studio annotations resharper custom-attributes

是否有Visual Studio扩展或加载项在类型,属性和其他目标上显示继承的自定义属性?

例如,如果有这样的基类:

[Serializable]
[SomeOtherAttribute]
[YeatAnotherAttribute]
class Person
{
    [IsRequired]
    [ShouldReturnNonNullNonEmptyString]
    public virtual string LifesGoal { get; }
}

然后我想在子类化时看到继承的属性:

----------------------------------------------------
| some sort of box displaying inherited attributes |
----------------------------------------------------
[SomeNewAttribute]
class Student : Person
{
    ----------------------------------------------------
    | some sort of box displaying inherited attributes |
    ----------------------------------------------------
    public override string LifesGoal { get { return "To study"; } }
}

0 个答案:

没有答案