简单的说就是c#中的:
public interface IBar
{
int Value { [Foo] get; [Foo] set; }
}
[AttributeUsage(AttributeTargets.Method)]
public sealed class FooAttribute : Attribute
{
public FooAttribute() { }
}
怎么在vb.net中写?
...全文
2929打赏收藏
怎么在接口属性的get或set方法上添加特性?
简单的说就是c#中的: public interface IBar { int Value { [Foo] get; [Foo] set; } } [AttributeUsage(AttributeTargets.Method)] public sealed class FooAttribute : Attribute { public FooAttribute() { } } 怎么在vb.net中写?