I added a property to an interface like this:
<code>
public interface ISimpleAddress
{
[Bindable(BindableSupport.Yes)]
[EditorBrowsable(EditorBrowsableState.Always)]
string CarrierFax{ get; set; }
}
</code>
I was disappointed to see that when I implemented the interface:
1) Visual Studio Refactoring-Auto-Implement tool didn't add the attributes
2) If I omitted the attributes from the concrete class the compiler didn't
complain.
Why do interfaces allow attributes if they won't be enforced?
Anyone know?