Reputation: 15
I have an project requirement, which an specific abstract class should force all subclasses to be sealed C#, for instance:
public abstract class BaseProcess {
}
public sealed class HealthCheck : BaseProcess {
//Valid class
}
public class EtlSales : BaseProcess {
//Invalid, should emit a warning or a error when i compile
}
There's a data annotation or keyword, that force this configuration?
Upvotes: 0
Views: 169