Why can't Interface ReadOnly properties be overridden in VB.NET, when it is valid in C#.NET?
- 阅读更多 关于 Why can't Interface ReadOnly properties be overridden in VB.NET, when it is valid in C#.NET?
(this is related to this other question ) If you define an Interface where there is a Property with only a getter (= ReadOnly in VB.NET), why can you define the setter in implementing classes with C# but not with VB ? I would have thought it was defined at .NET level, and not language-specific. Example: for this interface 'VB.NET Interface SomeInterface 'the interface only say that implementers must provide a value for reading ReadOnly Property PublicProperty As String End Interface or //C# code interface IPublicProperty { string PublicProperty { get; } } This is a correct implementation in C#