ExpressiveAnnotations:在RequiredIfAttribute中翻译全局_defaultErrorMessage

时间:2015-08-31 08:37:49

标签: c# translation expressiveannotations

我想为AssertThatAttributeRequiredIfAttribute使用继承但是不可能,因为这两个类都是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}";

我想在全球范围内为整个项目进行翻译。有可能吗?

0 个答案:

没有答案