MarkD posted on Thursday, October 25, 2007
Hi guys,
I'm trying to create a validation rule for MaxValue for a string datatype. I'm trying to use the MaxValueRuleArgs(Of T), but this doesn't work with Strings because:
"
Overload resolution failed because no accessible 'New' is most specific for these arguments:
'Public Sub New(propertyName As String, maxValue As String, format As String)': Not most specific.
'Public Sub New(propertyName As String, friendlyName As String, maxValue As String)': Not most specific."
I saw Rocky talked about this during the 2.1 days
here and I understand why he did it, but is there any other way to invoke this MaxValueRuleArg for a string? I suppose I could use the RegEx or write my own, but I was looking for a simple solution.
MD