Quantcast
Viewing all articles
Browse latest Browse all 6

Answer by bartosz.lipinski for What exception to throw when a property setter is not allowed?

If you can you could try to move setter to constructor of the base class and make setter private. Or as Jon suggested create abstract base class / interface with getters that are supported in all implementations.

This would avoid the whole situation with throwing exception.


Viewing all articles
Browse latest Browse all 6

Trending Articles