У меня есть атрибут, и я хочу загрузить текст в атрибут из файла ресурсов.
[IntegerValidation(1, 70, ErrorMessage = Data.Messages.Speed)]
private int i_Speed;
Но я продолжаю получать "Аргумент атрибута должен быть константным выражением, выражением typeof или выражением создания массива типа параметра атрибута"
Он отлично работает, если я добавляю строку вместо Data.Messages.Text, например:
[IntegerValidation(1, 70, ErrorMessage = "Invalid max speed")]
Любые идеи?