我想为AssertThatAttribute
和RequiredIfAttribute
使用继承但是不可能,因为这两个类都是sealed
类
public sealed class RequiredIfAttribute : ExpressiveAttribute
public sealed class AssertThatAttribute : ExpressiveAttribute
是否有其他可能性来翻译全球_ defaultErrorMessage
例如:
private const string _defaultErrorMessage = "Assertion for {0} field is not satisfied by the following logic: {1}";
我想在全球范围内为整个项目进行翻译。有可能吗?