I want to use inheritance for AssertThatAttribute
and RequiredIfAttribute
but is not possible because both classes are sealed
classes
public sealed class RequiredIfAttribute : ExpressiveAttribute
public sealed class AssertThatAttribute : ExpressiveAttribute
Is any other possibility to translate global _defaultErrorMessage
For example:
private const string _defaultErrorMessage = "Assertion for {0} field is not satisfied by the following logic: {1}";
I would like to translate it globally for whole project. Is it possible to do it?