将字符串替换添加到必需属性错误消息中

时间:2013-03-12 11:14:46

标签: c# resource-files

我有以下代码

[Required("SalesChannel", SeenSalesChannelString, 
            ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = ErrorMessagesErrors.FieldConditionallyRequired)]

字段FieldConditionallyRequired需要一些替换{0}{1}。我如何提供这些?

0 个答案:

没有答案