[bcl] Update Reference Source to .NET Framework 4.6.2
[mono.git] / mcs / class / referencesource / System.Web / ModelBinding / RangeAttributeAdapter.cs
index 2c5acf046fca199103066f549d8285d231565ca9..28858643c11e2dbe144c3a5fbbb689b250c9e52e 100644 (file)
@@ -6,6 +6,11 @@
             : base(metadata, context, attribute) {
         }
 
+        protected override string GetLocalizedErrorMessage(string errorMessage) {
+            return GetLocalizedString(errorMessage, Metadata.GetDisplayName(), Attribute.Minimum, Attribute.Maximum);
+
+        }
+
 #if UNDEF
         public override IEnumerable<ModelClientValidationRule> GetClientValidationRules() {
             string errorMessage = ErrorMessage; // Per Dev10 Bug #923283, need to make sure ErrorMessage is called before Minimum/Maximum